Skip to content

Commit

Permalink
Adds macOS build to prevent regressions for developers. (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
abaire authored Jan 13, 2025
1 parent b263169 commit e07efc4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
42 changes: 40 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ on:
- '!.github/workflows/**'
- 'README.md'
workflow_dispatch:


jobs:
BuildISO:
name: Build ISO
runs-on: ubuntu-latest
steps:
- name: Clone tree
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive
path: nxdk_pgraph_tests
Expand Down Expand Up @@ -62,3 +62,41 @@ jobs:
files: |
nxdk_pgraph_tests/build/xiso/nxdk_pgraph_tests_xiso/nxdk_pgraph_tests_xiso.iso
BuildMacOS:
name: Build macOS
runs-on: macOS-latest
steps:
- name: Clone tree
uses: actions/checkout@v3
with:
submodules: recursive
path: nxdk_pgraph_tests
- name: Install dependencies
run: |
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_INSTALL_CLEANUP=1
brew install \
cmake \
coreutils \
llvm@19 \
lld
export PIP_BREAK_SYSTEM_PACKAGES=1
pip3 install -r nxdk_pgraph_tests/requirements.txt
- name: Prewarm nxdk
working-directory: nxdk_pgraph_tests
run: |
export PATH="$(brew --prefix llvm@19)/bin:$PATH"
bash ${GITHUB_WORKSPACE}/nxdk_pgraph_tests/prewarm-nxdk.sh
- name: Compile
run: |
cd nxdk_pgraph_tests
# The default clang install will result in linker failures on macOS.
export PATH="$(brew --prefix llvm@19)/bin:$PATH"
export NXDK_DIR="${GITHUB_WORKSPACE}/nxdk_pgraph_tests/third_party/nxdk"
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE="${NXDK_DIR}/share/toolchain-nxdk.cmake" \
-DENABLE_PROGRESS_LOG=ON \
-DDUMP_CONFIG_FILE=ON \
-DRUNTIME_CONFIG_PATH="e:/nxdk_pgraph_tests/pgraph_tests.cnf"
cmake --build build -- -j
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nv2a-vsh >= 0.1.1
nv2a-vsh >= 0.1.2

0 comments on commit e07efc4

Please sign in to comment.