summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhspetersson <jhspetersson@gmail.com>2024-01-04 22:48:35 +0100
committerGitHub <noreply@github.com>2024-01-04 22:48:35 +0100
commit611bcaa6f03686db4c10f27f1909503530179c27 (patch)
tree66e34809fbb76595e6792f8927f6f197d11f5a90
parentb25cf8b683ec61ab3b4b86d17235fa3181333c9f (diff)
Update rust.yml
-rw-r--r--.github/workflows/rust.yml32
1 files changed, 31 insertions, 1 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index c1596fb..9a78534 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -24,6 +24,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
+ - uses: actions/cache@v3
+ id: cache-deps
+ with:
+ path: |
+ ~/.cargo/bin/
+ ~/.cargo/registry/index/
+ ~/.cargo/registry/cache/
+ ~/.cargo/git/db/
+ target/
+ key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- name: Build
run: cargo build --verbose
- name: Run tests
@@ -33,6 +43,16 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
+ - uses: actions/cache@v3
+ id: cache-deps-windows
+ with:
+ path: |
+ ~/.cargo/bin/
+ ~/.cargo/registry/index/
+ ~/.cargo/registry/cache/
+ ~/.cargo/git/db/
+ target/
+ key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- name: Build
run: cargo build --verbose
- name: Run tests
@@ -42,7 +62,17 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
+ - uses: actions/cache@v3
+ id: cache-deps-macos
+ with:
+ path: |
+ ~/.cargo/bin/
+ ~/.cargo/registry/index/
+ ~/.cargo/registry/cache/
+ ~/.cargo/git/db/
+ target/
+ key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- name: Build
run: cargo build --verbose
- name: Run tests
- run: cargo test --verbose \ No newline at end of file
+ run: cargo test --verbose