mirror of
https://gitee.com/openharmony/third_party_rust_serde
synced 2024-11-23 15:01:05 +00:00
Try caching Cargo index to speed up 1.13 build
This one build always took several (10+) minutes on: Updating registry `https://github.com/rust-lang/crates.io-index`
This commit is contained in:
parent
2b4355724e
commit
cd836eb3ca
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -46,6 +46,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dtolnay/rust-toolchain@1.13.0
|
||||
- name: Get timestamp for cache
|
||||
id: date
|
||||
run: echo ::set-output name=yearmo::$(date +%Y%m)
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cargo/registry/index
|
||||
key: cargo-registry-index-${{steps.date.outputs.yearmo}}
|
||||
- run: cd serde && cargo build --features rc
|
||||
- run: cd serde && cargo build --no-default-features
|
||||
- run: cd serde_test && cargo build
|
||||
|
Loading…
Reference in New Issue
Block a user