Bump lpub3d raytracer actions to v3 #2
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
# LPub3D Raytracer-cui build actions | |
# Trevor SANDY <[email protected]> | |
# Last Update: September 10, 2024 | |
# | |
name: 'LPub3D Trace CUI Builds' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- lpub3d/raytracer-cui | |
paths-ignore: [ 'distribution/**', 'doc/**', 'source-doc/**' ] | |
pull_request: | |
branches: | |
- lpub3d/raytracer-cui | |
paths-ignore: [ 'distribution/**', 'doc/**', 'source-doc/**' ] | |
jobs: | |
build_unix: | |
# if: ${{ false }} # uncomment to disable | |
name: '${{ matrix.os }} ${{ matrix.c-compiler }}' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, macos-13] | |
c-compiler: [gcc, clang] | |
exclude: | |
- os: macos-13 | |
c-compiler: gcc | |
- os: ubuntu-22.04 | |
c-compiler: clang | |
include: | |
# os-specific | |
- os: ubuntu-22.04 | |
- os: macos-13 | |
# compiler-specific | |
- c-compiler: gcc | |
cxx-compiler: g++ | |
- c-compiler: clang | |
cxx-compiler: clang++ | |
steps: | |
- name: 'Matrix Diagnostics' | |
shell: bash | |
run: | | |
echo '${{ toJSON(matrix) }}' | |
${{matrix.c-compiler}} --version | |
- name: 'Check out Repository' | |
uses: actions/checkout@v4 | |
- name: 'Install Prerequisites' | |
uses: trevorsandy/povray/.github/actions/unix_getlibs@gh-actions-raytracer-v3 | |
- name: 'Prebuild' | |
uses: trevorsandy/povray/.github/actions/unix_prebuild@gh-actions-raytracer-v3 | |
- name: 'Sanity-Check Working Tree' | |
uses: trevorsandy/povray/.github/actions/git_check_repo@gh-actions-raytracer-v3 | |
- name: 'Configure' | |
uses: trevorsandy/povray/.github/actions/unix_configure@gh-actions-raytracer-v3 | |
with: | |
c-compiler: ${{ matrix.c-compiler }} | |
cxx-compiler: ${{ matrix.cxx-compiler }} | |
- name: 'Sanity-Check Working Tree' | |
uses: trevorsandy/povray/.github/actions/git_check_repo@gh-actions-raytracer-v3 | |
- name: 'Bundle Artifacts for Diagnostics' | |
if: ${{ always() }} | |
uses: trevorsandy/povray/.github/actions/git_bundle_ignored@gh-actions-raytracer-v3 | |
with: | |
name: artifact_diag_unix.tar.gz | |
- name: 'Build' | |
uses: trevorsandy/povray/.github/actions/unix_make@gh-actions-raytracer-v3 | |
- name: 'Sanity-Check Working Tree' | |
uses: trevorsandy/povray/.github/actions/git_check_repo@gh-actions-raytracer-v3 | |
- name: 'Build Check' | |
if: ${{ success() }} | |
uses: trevorsandy/povray/.github/actions/unix_make@gh-actions-raytracer-v3 | |
with: | |
make-target: check | |
- name: 'Sanity-Check Working Tree' | |
uses: trevorsandy/povray/.github/actions/git_check_repo@gh-actions-raytracer-v3 | |
- name: 'Upload Artifacts for Diagnostics' | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifact_diag_${{ matrix.os }}_${{ matrix.c-compiler }} | |
path: artifact_diag_${{ matrix.os }}_${{ matrix.c-compiler }}.tar.gz | |
build_windows: | |
# if: ${{ false }} # uncomment to disable | |
name: 'Windows VS 2022' | |
runs-on: windows-2022 | |
steps: | |
- name: 'Check out Repository' | |
uses: actions/checkout@v4 | |
- name: 'Add MSBuild to PATH' | |
uses: microsoft/setup-msbuild@v2 | |
- name: 'Build' | |
uses: trevorsandy/povray/.github/actions/windows_build@gh-actions-raytracer-v3 | |
with: | |
pov-ray-build-id: gh+vs2022+${{ github.run_number }} | |
version-base: 3.8 | |
solution: vs2015 | |
configuration: Release | |
platform: x64 | |
toolset: v143 | |
compatibility: '' | |
msbuild-options: '' | |
- name: 'Build Check' | |
if: ${{ success() }} | |
uses: trevorsandy/povray/.github/actions/windows_check@gh-actions-raytracer-v3 | |
with: | |
version-base: 3.8 | |
solution: vs2015 | |
platform: x64 |