Skip to content

Commit

Permalink
Use an action for caching dependencies
Browse files Browse the repository at this point in the history
Use caching everywhere to avoid downloads and dependency compiles. As an
exception, avoid this during publish to make sure cache poisoning is never
an issue).

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
  • Loading branch information
jku committed Oct 29, 2024
1 parent 05346f9 commit dc31a17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
run: |
rustup install --profile minimal stable
rustup override set stable
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- run: |
cargo build --manifest-path=tests/conformance/Cargo.toml
- uses: sigstore/sigstore-conformance@main
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
run: |
rustup install --profile minimal stable
rustup override set stable
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- run: |
cargo check
Expand All @@ -25,6 +26,7 @@ jobs:
rustup install --profile minimal stable
rustup override set stable
rustup target add wasm32-unknown-unknown
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- run: |
cargo check --no-default-features --features wasm
Expand All @@ -37,6 +39,7 @@ jobs:
run: |
rustup install --profile minimal stable
rustup override set stable
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- run: |
cargo test --workspace --features full-native-tls,test-registry
Expand All @@ -49,6 +52,7 @@ jobs:
run: |
rustup install --profile minimal nightly
rustup override set nightly
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- run: |
make doc
Expand All @@ -62,6 +66,7 @@ jobs:
rustup install --profile minimal stable
rustup override set stable
rustup component add rustfmt
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- run: |
cargo fmt --all -- --check
Expand All @@ -75,5 +80,6 @@ jobs:
rustup install --profile minimal stable
rustup override set stable
rustup component add clippy
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- run: |
cargo clippy --workspace -- -D warnings

0 comments on commit dc31a17

Please sign in to comment.