-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change method of finding Python for robustness, enhance CI to cover i…
…ssues
- Loading branch information
1 parent
e7d5b0b
commit 77ad1f5
Showing
5 changed files
with
110 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
## Copyright 2021-2024 The Khronos Group | ||
## SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: "Configure, build, and test ANARI-SDK" | ||
description: "Runs cmake to configure, build, and test the ANARI-SDK" | ||
inputs: | ||
workspace: | ||
description: "Main working directory" | ||
required: true | ||
config: | ||
description: "Build configuration" | ||
required: true | ||
os: | ||
description: "Operating system" | ||
required: true | ||
shell: | ||
description: "Operating system" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Configure CMake | ||
shell: ${{ inputs.shell }} | ||
run: > | ||
cmake -LA -B ${{ inputs.workspace }}/build | ||
-DCMAKE_BUILD_TYPE=${{ inputs.config }} | ||
-DCMAKE_INSTALL_PREFIX=${{ inputs.workspace }}/build/install | ||
-DBUILD_SHARED_LIBS=ON | ||
-DBUILD_CTS=${{ inputs.os != 'ubuntu-20.04' }} | ||
-DBUILD_EXAMPLES=ON | ||
-DBUILD_HDANARI=OFF | ||
-DBUILD_HELIDE_DEVICE=ON | ||
-DBUILD_REMOTE_DEVICE=${{ inputs.os == 'ubuntu-latest' }} | ||
-DBUILD_TESTING=ON | ||
-DBUILD_VIEWER=OFF | ||
- name: Build | ||
shell: ${{ inputs.shell }} | ||
run: cmake --build ${{ inputs.workspace }}/build --config ${{ inputs.config }} --target install | ||
|
||
- name: Unit Tests | ||
shell: ${{ inputs.shell }} | ||
working-directory: ${{ inputs.workspace }}/build | ||
run: ctest -R unit_test -C ${{ inputs.config }} | ||
|
||
- name: Render Tests | ||
shell: ${{ inputs.shell }} | ||
working-directory: ${{inputs.workspace}}/build | ||
run: ctest -R render_test -C ${{ inputs.config }} | ||
|
||
- name: Tutorial Tests | ||
shell: ${{ inputs.shell }} | ||
working-directory: ${{inputs.workspace}}/build | ||
run: ctest -R anariTutorial -C ${{ inputs.config }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters