Merge pull request #2207 from etang-cw/CacheSpirvTools
Improve CI build times
This commit is contained in:
commit
79401259fd
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@ -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
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user