From 0b167f21b1a0ce63234684fa03d0e4dbe18a251d Mon Sep 17 00:00:00 2001 From: Lucas Girouard-Stranks <519592+lithiumtoast@users.noreply.github.com> Date: Sat, 5 Aug 2023 17:04:50 -0400 Subject: [PATCH] Make build.yml faster --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a6c942c2..7f8b54c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,17 +38,17 @@ jobs: key: "libs-${{ matrix.platform.rid }}-${{ hashFiles('ext/sokol/**/*') }}-${{ hashFiles('src/c/**/*') }}--${{ hashFiles('bindgen/**/*') }}" - name: "Install Windows dependencies" - if: runner.os == 'Windows' + if: runner.os == 'Windows' && steps.cache-libs.outputs.cache-hit != 'true' run: | choco install ninja - name: "Install macOS dependencies" - if: runner.os == 'macOS' + if: runner.os == 'macOS' && steps.cache-libs.outputs.cache-hit != 'true' run: | brew install ninja - name: Setup Linux dependencies - if: runner.os == 'Linux' + if: runner.os == 'Linux' && steps.cache-libs.outputs.cache-hit != 'true' run: | sudo apt-get update sudo apt-get install \ @@ -56,6 +56,7 @@ jobs: libxi-dev libxcursor-dev libgl-dev libasound2-dev - name: "Install C2CS" + if: steps.cache-libs.outputs.cache-hit != 'true' shell: bash run: dotnet tool install --global bottlenoselabs.C2CS.Tool