change method of finding Python for robustness, enhance CI to cover issues #668
Workflow file for this run
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
## Copyright 2021-2024 The Khronos Group | |
## SPDX-License-Identifier: Apache-2.0 | |
name: ANARI-SDK CI | |
on: | |
push: | |
branches: [ next_release ] | |
pull_request: | |
branches: [ main, next_release ] | |
env: | |
ANARI_LIBRARY: helide | |
jobs: | |
build-linux: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04] | |
config: [Release, Debug] | |
steps: | |
- name: Install Packages | |
run: sudo apt install -y libboost-system-dev | |
- name: Build and test | |
uses: ./.github/actions/configure_and_build | |
with: | |
workspace: ${{ github.workspace }} | |
config: ${{ matrix.config }} | |
os: ${{ matrix.os }} | |
build-windows: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest] | |
config: [Release, Debug] | |
steps: | |
- name: Build and test | |
uses: ./.github/actions/configure_and_build | |
with: | |
workspace: ${{ github.workspace }} | |
config: ${{ matrix.config }} | |
os: ${{ matrix.os }} | |
build-macos: | |
# iOS is 10x expensive to run on GitHub machines, so only run if we know something else passed as well | |
needs: [build-linux, build-windows] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
config: [Release] | |
steps: | |
- name: Build and test | |
uses: ./.github/actions/configure_and_build | |
with: | |
workspace: ${{ github.workspace }} | |
config: ${{ matrix.config }} | |
os: ${{ matrix.os }} |