Skip to content

Commit

Permalink
upload CI builds of releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffamstutz committed Jan 13, 2025
1 parent 43d1ae2 commit 0414176
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/actions/configure_and_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ inputs:
os:
description: "Operating system"
required: true
upload:
description: "Switch to enable uploading install zips"
required: true
shell:
description: "Operating system"
description: "Native shell to use for job steps"
required: true
runs:
using: "composite"
Expand Down Expand Up @@ -45,10 +48,17 @@ runs:

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

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

- name: Upload install
if: ${{ inputs.upload == true }}
uses: actions/upload-artifact@v4
with:
name: ANARI-SDK_${{ inputs.os }}
path: ${{ inputs.workspace }}/build/install
3 changes: 3 additions & 0 deletions .github/workflows/anari_sdk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
workspace: ${{ github.workspace }}
config: ${{ matrix.config }}
os: ${{ matrix.os }}
upload: ${{ matrix.config == 'Release' && matrix.os == 'ubuntu-20.04' }}
shell: bash

build-windows:
Expand All @@ -50,6 +51,7 @@ jobs:
workspace: ${{ github.workspace }}
config: ${{ matrix.config }}
os: ${{ matrix.os }}
upload: ${{ matrix.config == 'Release' }}
shell: pwsh

build-macos:
Expand All @@ -69,4 +71,5 @@ jobs:
workspace: ${{ github.workspace }}
config: ${{ matrix.config }}
os: ${{ matrix.os }}
upload: ${{ matrix.config == 'Release' }}
shell: bash

0 comments on commit 0414176

Please sign in to comment.