Skip to content

Commit

Permalink
ci: Build dependency for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg authored and jeffamstutz committed Nov 7, 2024
1 parent 23f0564 commit 882cc83
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion .github/workflows/anari_sdk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest]
config: [Release, Debug]

steps:
Expand Down Expand Up @@ -51,3 +51,43 @@ jobs:
- name: Tutorial Tests
working-directory: ${{github.workspace}}/build
run: ctest -R anariTutorial -C ${{ matrix.config }}

build-macos:
# iOS is 10x expensive to run on GitHub machines, so only run if we know something else passed as well
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
config: [Release]

steps:
- uses: actions/checkout@v3

- name: Configure CMake
run: >
cmake -LA -B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install
-DBUILD_SHARED_LIBS=ON
-DBUILD_EXAMPLES=ON
-DBUILD_HDANARI=OFF
-DBUILD_HELIDE_DEVICE=ON
-DBUILD_REMOTE_DEVICE=${{ matrix.os == 'ubuntu-latest' }}
-DBUILD_TESTING=ON
-DBUILD_VIEWER=OFF
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.config }} --target install

- name: Unit Tests
working-directory: ${{github.workspace}}/build
run: ctest -R unit_test -C ${{ matrix.config }}

- name: Render Tests
working-directory: ${{github.workspace}}/build
run: ctest -R render_test -C ${{ matrix.config }}

- name: Tutorial Tests
working-directory: ${{github.workspace}}/build
run: ctest -R anariTutorial -C ${{ matrix.config }}

0 comments on commit 882cc83

Please sign in to comment.