mirror of
https://github.com/bitwarden/browser
synced 2026-01-30 16:23:53 +00:00
Enable GHA for sccache
This commit is contained in:
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -153,6 +153,7 @@ jobs:
|
||||
env:
|
||||
RUSTFLAGS: "-D warnings"
|
||||
RUSTC_WRAPPER: sccache
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
|
||||
- name: Cache cargo-sort
|
||||
id: cache-cargo-sort
|
||||
@@ -179,6 +180,7 @@ jobs:
|
||||
run: cargo +nightly udeps --workspace --all-features --all-targets
|
||||
env:
|
||||
RUSTC_WRAPPER: sccache
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
|
||||
- name: Install cargo-deny
|
||||
uses: taiki-e/install-action@81ee1d48d9194cdcab880cbdc7d36e87d39874cb # v2.62.45
|
||||
|
||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -125,6 +125,7 @@ jobs:
|
||||
run: cargo build
|
||||
env:
|
||||
RUSTC_WRAPPER: sccache
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
|
||||
- name: Test Ubuntu
|
||||
if: ${{ matrix.os=='ubuntu-22.04' }}
|
||||
@@ -138,6 +139,7 @@ jobs:
|
||||
cargo test -- --test-threads=1
|
||||
env:
|
||||
RUSTC_WRAPPER: sccache
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
|
||||
- name: Test macOS
|
||||
if: ${{ matrix.os=='macos-14' }}
|
||||
@@ -145,6 +147,7 @@ jobs:
|
||||
run: cargo test -- --test-threads=1
|
||||
env:
|
||||
RUSTC_WRAPPER: sccache
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
|
||||
- name: Test Windows
|
||||
if: ${{ matrix.os=='windows-2022'}}
|
||||
@@ -152,6 +155,7 @@ jobs:
|
||||
run: cargo test --workspace --exclude=desktop_napi -- --test-threads=1
|
||||
env:
|
||||
RUSTC_WRAPPER: sccache
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
|
||||
rust-coverage:
|
||||
name: Rust Coverage
|
||||
|
||||
Reference in New Issue
Block a user