From 4a99eb626a803494786649e5430a88aa311956da Mon Sep 17 00:00:00 2001 From: Sam Kaufman Date: Tue, 16 Apr 2024 15:03:22 -0700 Subject: [PATCH] Added sccache to CI runs. --- .github/workflows/build-app.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-app.yaml b/.github/workflows/build-app.yaml index 407f918..482225b 100644 --- a/.github/workflows/build-app.yaml +++ b/.github/workflows/build-app.yaml @@ -1,12 +1,25 @@ name: build-app -on: [push] - +on: + push: + workflow_call: + inputs: + disable_sccache: + required: false + type: boolean jobs: build: runs-on: macos-13 steps: + - name: Run sccache-cache unless disabled + if: inputs.disable_sccache != true + uses: mozilla-actions/sccache-action@v0.0.3 - name: Select Xcode 15 run: sudo xcode-select -s '/Applications/Xcode_15.0.1.app/Contents/Developer' + - name: Set Rust caching env vars only on non-release runs + if: inputs.disable_sccache != true + run: | + echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV + echo "TES3MP_MAC_USE_SCCACHE=1" >> $GITHUB_ENV - uses: actions/checkout@v4 - run: brew install coreutils create-dmg gnu-sed meson nasm ninja patchutils python-setuptools - name: Build