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

Replace rust-cache with sccache-cache #25

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:
with:
toolchain: stable

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

- name: Install cargo-machete
uses: taiki-e/install-action@v2
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ jobs:
toolchain: stable
components: clippy

- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: Install Dbus
if: startsWith(matrix.os, 'ubuntu-')
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ jobs:
run: |
echo "rustc=$(rustc --version)" >> "$GITHUB_OUTPUT"

- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: Install cargo-binstall
uses: taiki-e/install-action@v2
Expand Down Expand Up @@ -72,8 +75,11 @@ jobs:
- name: Fetch Repository
uses: actions/checkout@v4

- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: Install Stable Rust Toolchain
uses: dtolnay/rust-toolchain@master
Expand Down Expand Up @@ -161,8 +167,11 @@ jobs:
toolchain: stable
targets: ${{ matrix.target }}

- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: Install Dbus
if: ${{ !matrix.cross && startsWith(matrix.os, 'ubuntu-') }}
Expand Down
22 changes: 5 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,11 @@ jobs:
with:
toolchain: stable

- name: Rust Cache
if: startsWith(matrix.os, 'ubuntu-')
uses: Swatinem/rust-cache@v2
with:
cache-directories: "~/.cache/lcode/"

- name: Rust Cache
if: startsWith(matrix.os, 'windows-')
uses: Swatinem/rust-cache@v2
with:
cache-directories: "~/AppData/Local/lcode/"

- name: Rust Cache
if: startsWith(matrix.os, 'macos-')
uses: Swatinem/rust-cache@v2
with:
cache-directories: "~/Library/Caches/lcode/"
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: Install Dependencies
if: startsWith(matrix.os, 'ubuntu-')
Expand Down
Loading