From 5de6ae9d1edb06a08a6d3e59dd56aaf53bb03cdc Mon Sep 17 00:00:00 2001 From: Evan Tang Date: Tue, 3 Oct 2023 13:45:30 -0500 Subject: [PATCH] Cache externals in GitHub Actions --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7efc683..c998dcd9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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