Cache cargo dependencies using cache action
Some checks failed
Run Tests on Code / run-tests (push) Failing after 24s

This commit is contained in:
Neshura 2023-12-19 22:44:57 +01:00
parent 1503628491
commit 8ee5da5d53
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 33 additions and 0 deletions

View file

@ -19,6 +19,17 @@ jobs:
-
name: Add Clippy
run: rustup component add clippy
-
name: Set Up Cargo Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
-
name: Checking Out Repository Code
uses: https://code.forgejo.org/actions/checkout@v3
@ -47,6 +58,17 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18
-
name: Set Up Cargo Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
-
name: Checking Out Repository Code
uses: https://code.forgejo.org/actions/checkout@v3

View file

@ -20,6 +20,17 @@ jobs:
-
name: Add Clippy
run: rustup component add clippy
-
name: Set Up Cargo Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
-
name: Checking Out Repository Code
uses: https://code.forgejo.org/actions/checkout@v3