Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
CMakeLists.txt text eol=lf
Dockerfile text eol=lf
.gitattributes text eol=lf
*.c text eol=lf
*.cfg text eol=lf
*.cls text eol=lf
*.cmake text eol=lf
*.conf text eol=lf
*.cpp text eol=lf
*.cs text eol=lf
*.css text eol=lf
*.csv text eol=lf
*.cu text eol=lf
*.cuh text eol=lf
*.cuhpp text eol=lf
*.cuhpp linguist-detectable
*.cuhpp linguist-language=C++
*.dae text eol=lf
*.dockerfile text eol=lf
*.dot text eol=lf
*.eps text eol=lf
*.fbs text eol=lf
*.h text eol=lf
*.h.in text eol=lf
*.hpp text eol=lf
*.hpp.in text eol=lf
*.hrc text eol=lf
*.html text eol=lf
*.js text eol=lf
*.json text eol=lf
*.less text eol=lf
*.lua text eof=lf
*.md text eol=lf
*.pjd text eol=lf
*.proto text eol=lf
*.rc text eol=lf
*.rch text eol=lf
*.scss text eol=lf
*.sh text eol=lf
*.svg text eol=lf
*.tex text eol=lf
*.ts text eol=lf
*.txt text eol=lf
*.type text eol=lf
*.xml text eol=lf
*.xpm text eol=lf
*.xsd text eol=lf
*.yml text eol=lf
.*rc text eol=lf
####################
*.csproj.in text eol=crlf
*.filters text eol=crlf
*.m text eol=crlf
*.resx text eol=crlf
*.rst text eol=crlf
*.sln text eol=crlf
*.sql text eol=crlf
*.vcproj text eol=crlf
*.vcxproj text eol=crlf
####################
*.bin binary
*.bmp binary
*.db binary
*.doc binary
*.eap binary
*.gif binary
*.ico binary
*.jpeg binary
*.jpg binary
*.mp3 binary
*.ntf binary
*.pdf binary
*.png binary
*.rtf binary
*.vsd binary
*.xcf binary
*.xlsx binary
*.zip binary
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
workflow_dispatch:
jobs:
linux:
uses: externpro/externpro/.github/workflows/build-linux.yml@25.04
with:
cmake-workflow-preset: LinuxRelease
runon: ubuntu-latest
secrets: inherit
linux-arm64:
uses: externpro/externpro/.github/workflows/build-linux.yml@25.04
with:
cmake-workflow-preset: LinuxRelease
runon: ubuntu-24.04-arm
secrets: inherit
windows:
uses: externpro/externpro/.github/workflows/build-windows.yml@25.04
with:
cmake-workflow-preset: WindowsRelease
secrets: inherit
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release
on:
workflow_dispatch:
inputs:
workflow_run_url:
description: 'URL of the workflow run containing artifacts to upload (e.g., https://github.com/owner/repo/actions/runs/123456789)'
required: true
type: string
jobs:
# Upload build artifacts as release assets
release-from-build:
uses: externpro/externpro/.github/workflows/release-from-build.yml@25.04
with:
workflow_run_url: ${{ github.event.inputs.workflow_run_url }}
artifact_pattern: "*.tar.xz"
secrets: inherit
18 changes: 10 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.31.7)
cmake_minimum_required(VERSION 3.31)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/.devcontainer/cmake)
include(preproject)
project(nodexp VERSION 14.17.6.1)
Expand All @@ -8,7 +8,6 @@ set(SHA256_win64 b83e9ce542fda7fc519cec6eb24a2575a84862ea4227dedc171a8e0b5b614ac
set(SHA256_arm64 9c4f3a651e03cd9b5bddd33a80e8be6a6eb15e518513e410bb0852a658699156)
set(SHA256_hders 9429d544af0507c92f309fb1a0b7c2082b52846bdff3cd8aa039ada0461c95b9)
set(SHA256_ndlib e456fef578acd36eb661055445b4a06c81c47b2cfe0066619e7faa135137d4f6)
set(webpro_REV NONE)
include(flags)
include(FetchContent)
cmake_policy(SET CMP0168 OLD) # don't want to see download progress
Expand All @@ -33,12 +32,15 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(bin "bin/")
set(ext tar.xz)
set(arch x64)
set(sha ${SHA256_Linux})
endif()
if(DEFINED ENV{XPX} AND "$ENV{XPX}" STREQUAL "JetPack")
set(arch arm64)
set(sha ${SHA256_arm64})
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|amd64|AMD64)$")
set(arch x64)
set(sha ${SHA256_Linux})
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|ARM64)$")
set(arch arm64)
set(sha ${SHA256_arm64})
else()
message(FATAL_ERROR "Unsupported architecture: ${CMAKE_SYSTEM_PROCESSOR}")
endif()
endif()
set(url https://nodejs.org/dist/v${ver}/node-v${ver}-${os}-${arch}.${ext})
set(fcName ${PROJECT_NAME}_fc)
Expand Down
3 changes: 1 addition & 2 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"version": 8,
"include": [
".devcontainer/cmake/presets/xpLinuxNinja.json",
".devcontainer/cmake/presets/xpJetPackNinja.json",
".devcontainer/cmake/presets/xpWindowsVs2019.json"
".devcontainer/cmake/presets/xpWindowsVs2022.json"
]
}