Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(workflows): use sccache for caching rust deps #23

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ defaults:
run:
shell: bash

env:
# enable caching for faster compilation
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
test:
name: Test on ${{ matrix.os }} with Python ${{ matrix.python-version }}
Expand All @@ -39,6 +44,9 @@ jobs:
with:
components: clippy

- name: Run sccache-cache 🗄️
uses: mozilla-actions/sccache-action@v0.0.5

- name: Setup Rust Cache 🗄️
uses: Swatinem/rust-cache@v2

Expand Down Expand Up @@ -126,6 +134,9 @@ jobs:
- name: Install Rust 🦀
uses: dtolnay/rust-toolchain@stable

- name: Run sccache-cache 🗄️
uses: mozilla-actions/sccache-action@v0.0.5

- name: Setup Rust Cache 🗄️
uses: Swatinem/rust-cache@v2

Expand All @@ -151,6 +162,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run sccache-cache 🗄️
uses: mozilla-actions/sccache-action@v0.0.5

- name: Build sdist
run: pipx run build --sdist

Expand Down
Loading