diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7efc683f..c2e81cb58 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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