Skip to content

Commit

Permalink
Add sccache to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
  • Loading branch information
Caellian committed Jan 5, 2025
1 parent ea7686c commit 23abead
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-and-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
SCCACHE_VERSION: "0.9.0"

jobs:
build:
strategy:
Expand All @@ -33,6 +36,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- run: sudo apt-get -qq update
- name: Install sccache
run: |
curl -s -L "https://github.com/mozilla/sccache/releases/download/v${{ env.SCCACHE_VERSION }}/sccache-v${{ env.SCCACHE_VERSION }}-x86_64-unknown-linux-musl.tar.gz" \
| tar xvz -C .
chmod +x "sccache-v${{ env.SCCACHE_VERSION }}-x86_64-unknown-linux-musl/sccache"
cp "sccache-v${{ env.SCCACHE_VERSION }}-x86_64-unknown-linux-musl/sccache" "/bin/sccache"
- name: Install dependencies
run: |
sudo apt-get install -yqq --no-install-recommends \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-and-test-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
lua \
ninja \
pkg-config \
sccache \
|| true # Ignore errors
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 23abead

Please sign in to comment.