diff --git a/.github/workflows/node-release.yml b/.github/workflows/node-release.yml index f80fcc22..44c0bbfb 100644 --- a/.github/workflows/node-release.yml +++ b/.github/workflows/node-release.yml @@ -26,6 +26,10 @@ jobs: with: 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 uses: actions/cache@v1 with: diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index bb7a2adf..5a0871f7 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -18,6 +18,9 @@ jobs: with: 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 uses: actions/cache@v1 with: diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index a503ebff..28d57110 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -38,6 +38,9 @@ jobs: with: 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 uses: actions/cache@v1 with: diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 200a3fef..868a1974 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,6 +19,10 @@ jobs: components: rustfmt, clippy 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 uses: actions/cache@v1 with: @@ -41,19 +45,19 @@ jobs: uses: actions-rs/cargo@v1 with: command: fmt - args: --manifest-path ./tokenizers/Cargo.toml -- --check + args: --manifest-path ./tokenizers/Cargo.toml -- --check - name: Lint Benchmarks with RustFmt uses: actions-rs/cargo@v1 with: 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 uses: actions-rs/cargo@v1 with: 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 uses: actions-rs/cargo@v1