diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d349374..5c212c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ on: - '!.github/workflows/**' - 'README.md' workflow_dispatch: - + jobs: BuildISO: @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Clone tree - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: recursive path: nxdk_pgraph_tests @@ -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)