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

Compile Caching #5265

Closed
wants to merge 5 commits into from
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/cargo_machete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Machete
uses: bnjbvr/cargo-machete@main
3 changes: 1 addition & 2 deletions .github/workflows/deploy_web_demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
# release:
# types: ["published"]


permissions:
contents: write # for committing to gh-pages branch

Expand All @@ -33,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
Expand Down
22 changes: 22 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 @@ -83,6 +88,8 @@ jobs:
check_wasm:
name: Check wasm32 + wasm-bindgen
runs-on: ubuntu-22.04
env:
RUSTC_WRAPPER: ""
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
Expand Down Expand Up @@ -124,6 +131,10 @@ jobs:

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

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

Comment on lines 132 to +137
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to use two different build caches?

- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{env.NIGHTLY_VERSION}}
Expand Down Expand Up @@ -155,6 +166,8 @@ jobs:

name: cargo-deny ${{ matrix.target }}
runs-on: ubuntu-22.04
env:
RUSTC_WRAPPER: ""
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
Expand All @@ -180,6 +193,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 +215,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 +236,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
Loading