mirror of
https://github.com/actions-rust-lang/setup-rust-toolchain.git
synced 2024-12-25 16:48:32 +01:00
ci: add cache-workspaces test
This commit is contained in:
parent
f2e9ed58bd
commit
922cc935eb
4 changed files with 45 additions and 0 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -70,3 +70,20 @@ jobs:
|
||||||
- run: cargo add serde_as
|
- run: cargo add serde_as
|
||||||
|
|
||||||
- run: cargo clippy
|
- run: cargo clippy
|
||||||
|
|
||||||
|
cache:
|
||||||
|
name: Cache
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- id: toolchain
|
||||||
|
name: Install Rust
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
components: clippy
|
||||||
|
cache: true
|
||||||
|
cache-workspaces: |-
|
||||||
|
./test-workspace
|
||||||
|
|
||||||
|
- run: cargo clippy
|
||||||
|
|
16
test-workspace/Cargo.lock
generated
Normal file
16
test-workspace/Cargo.lock
generated
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
|
version = 3
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ci"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"serde_as",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "serde_as"
|
||||||
|
version = "0.0.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4ee4afe4c5c3b69699c4267ae42b838e911466d7ca0005046adc93ac95bb16dd"
|
9
test-workspace/Cargo.toml
Normal file
9
test-workspace/Cargo.toml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[package]
|
||||||
|
name = "ci"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
serde_as = "0.0.1"
|
3
test-workspace/src/main.rs
Normal file
3
test-workspace/src/main.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
Loading…
Reference in a new issue