mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
Cache cargo registry and build target directory in CI (#78)
* try caching cargo registry and build * trigger build * try fixing path * force build * try different cache key * try rebuild
This commit is contained in:
12
.github/workflows/rust.yml
vendored
12
.github/workflows/rust.yml
vendored
@ -19,6 +19,18 @@ jobs:
|
||||
components: rustfmt, clippy
|
||||
override: true
|
||||
|
||||
- name: Cache Cargo Registry
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cargo/registry
|
||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
|
||||
|
||||
- name: Cache Cargo Build Target
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: tokenizers/target
|
||||
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.toml') }}
|
||||
|
||||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
Reference in New Issue
Block a user