mirror of
https://github.com/mii443/tokenizers.git
synced 2025-12-16 17:18:43 +00:00
fix cargo cache in ci
see https://github.com/actions/cache/issues/133#issuecomment-599102035
This commit is contained in:
4
.github/workflows/node-release.yml
vendored
4
.github/workflows/node-release.yml
vendored
@@ -26,6 +26,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
|
# Necessary for now for the cargo cache: https://github.com/actions/cache/issues/133#issuecomment-599102035
|
||||||
|
- if: matrix.os == 'ubuntu-latest'
|
||||||
|
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
||||||
|
|
||||||
- name: Cache Cargo Registry
|
- name: Cache Cargo Registry
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
3
.github/workflows/node.yml
vendored
3
.github/workflows/node.yml
vendored
@@ -18,6 +18,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
|
# Necessary for now for the cargo cache: https://github.com/actions/cache/issues/133#issuecomment-599102035
|
||||||
|
- run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
||||||
|
|
||||||
- name: Cache Cargo Registry
|
- name: Cache Cargo Registry
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
3
.github/workflows/python.yml
vendored
3
.github/workflows/python.yml
vendored
@@ -38,6 +38,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
|
|
||||||
|
# Necessary for now for the cargo cache: https://github.com/actions/cache/issues/133#issuecomment-599102035
|
||||||
|
- run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
||||||
|
|
||||||
- name: Cache Cargo Registry
|
- name: Cache Cargo Registry
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
10
.github/workflows/rust.yml
vendored
10
.github/workflows/rust.yml
vendored
@@ -19,6 +19,10 @@ jobs:
|
|||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
|
# Necessary for now for the cargo cache: https://github.com/actions/cache/issues/133#issuecomment-599102035
|
||||||
|
- if: matrix.os == 'ubuntu-latest'
|
||||||
|
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
||||||
|
|
||||||
- name: Cache Cargo Registry
|
- name: Cache Cargo Registry
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
@@ -41,19 +45,19 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: fmt
|
command: fmt
|
||||||
args: --manifest-path ./tokenizers/Cargo.toml -- --check
|
args: --manifest-path ./tokenizers/Cargo.toml -- --check
|
||||||
|
|
||||||
- name: Lint Benchmarks with RustFmt
|
- name: Lint Benchmarks with RustFmt
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: fmt
|
command: fmt
|
||||||
args: --manifest-path ./tokenizers/Cargo.toml -- ./tokenizers/benches/bpe_benchmark.rs --check
|
args: --manifest-path ./tokenizers/Cargo.toml -- ./tokenizers/benches/bpe_benchmark.rs --check
|
||||||
|
|
||||||
- name: Lint with Clippy
|
- name: Lint with Clippy
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: clippy
|
command: clippy
|
||||||
args: --manifest-path ./tokenizers/Cargo.toml --all-targets --all-features -- -D warnings
|
args: --manifest-path ./tokenizers/Cargo.toml --all-targets --all-features -- -D warnings
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user