Skip to content

Commit

Permalink
Merge pull request KhronosGroup#2207 from etang-cw/CacheSpirvTools
Browse files Browse the repository at this point in the history
Improve CI build times
  • Loading branch information
HansKristian-Work authored Oct 10, 2023
2 parents 1f289d3 + f9dd809 commit 7940125
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,24 @@ jobs:
with:
python-version: '3.x'

- name: Cache glslang / SPIRV-Tools
id: cache-externals
uses: actions/cache@v3
with:
path: external/*-build/output
key: ${{ matrix.platform }} externals ${{ hashFiles('checkout_glslang_spirv_tools.sh', 'build_glslang_spirv_tools.sh') }}

- name: Pull glslang / SPIRV-Tools
if: steps.cache-externals.outputs.cache-hit != 'true'
shell: bash
working-directory: ${{github.workspace}}
run: ./checkout_glslang_spirv_tools.sh

- name: Build glslang / SPIRV-Tools
if: steps.cache-externals.outputs.cache-hit != 'true'
shell: bash
working-directory: ${{github.workspace}}
run: ./build_glslang_spirv_tools.sh Release
run: ./build_glslang_spirv_tools.sh Release 4

- name: Configure SPIRV-Cross
shell: bash
Expand All @@ -47,7 +56,7 @@ jobs:
shell: bash
working-directory: ${{github.workspace}}/build
run: |
cmake --build . --config Release
cmake --build . --config Release --parallel 4
cmake --build . --config Release --target install
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 7940125

Please sign in to comment.