Skip to content

Commit

Permalink
Adds macOS build to prevent regressions for developers.
Browse files Browse the repository at this point in the history
  • Loading branch information
abaire committed Jan 13, 2025
1 parent b263169 commit 0d4bf19
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 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,37 @@ 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
- 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
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$(grep -c processor /proc/cpuinfo)

0 comments on commit 0d4bf19

Please sign in to comment.