Skip to content

Commit

Permalink
ci: Try out sccache
Browse files Browse the repository at this point in the history
Since we have a lot of C and Rust code, let's try out sccache.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Jan 31, 2025
1 parent ef89de2 commit 5719d4c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,13 @@ jobs:
name: "Build (c9s)"
runs-on: ubuntu-latest
container: quay.io/centos/centos:stream9
# https://github.com/Mozilla-Actions/sccache-action
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Init sccache
uses: mozilla-actions/[email protected]
- name: Install git
run: yum -y install git
- name: Checkout repository
Expand All @@ -260,7 +266,7 @@ jobs:
- name: Install dependencies
run: ./ci/installdeps.sh
- name: Build
run: ./ci/build.sh && make install DESTDIR=$(pwd)/install && tar -C install -czf install.tar .
run: env CC="sccache gcc" CXX="sccache gcc" ./ci/build.sh && make install DESTDIR=$(pwd)/install && tar -C install -czf install.tar .
- name: Unit tests
run: cargo test
- name: Upload binary
Expand Down

0 comments on commit 5719d4c

Please sign in to comment.