Cache externals in GitHub Actions
This commit is contained in:
parent
37fee00a71
commit
5de6ae9d1e
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -26,12 +26,21 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user