Skip to content

Commit

Permalink
add sccache
Browse files Browse the repository at this point in the history
  • Loading branch information
bircni committed Oct 14, 2024
1 parent 698ac44 commit 26e233e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
NIGHTLY_VERSION: nightly-2024-09-11
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
fmt-crank-check-test:
Expand All @@ -29,6 +31,9 @@ jobs:
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Rustfmt
run: cargo fmt --all -- --check

Expand Down Expand Up @@ -95,6 +100,9 @@ jobs:
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Check wasm32 egui_demo_app
run: cargo check -p egui_demo_app --lib --target wasm32-unknown-unknown

Expand Down Expand Up @@ -124,6 +132,10 @@ jobs:

- name: Set up cargo cache
uses: Swatinem/rust-cache@v2

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{env.NIGHTLY_VERSION}}
Expand Down Expand Up @@ -180,6 +192,9 @@ jobs:
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- run: cargo check --features wgpu,android-native-activity --target aarch64-linux-android
working-directory: crates/eframe

Expand All @@ -199,6 +214,9 @@ jobs:
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

# Default features are disabled because glutin doesn't compile for ios.
- run: cargo check --features wgpu --target aarch64-apple-ios --no-default-features
working-directory: crates/eframe
Expand All @@ -217,6 +235,9 @@ jobs:
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Check all
run: cargo check --all-targets --all-features

Expand Down

0 comments on commit 26e233e

Please sign in to comment.