Skip to content

Commit

Permalink
fix: cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy-lmao committed Nov 6, 2024
1 parent 9ab34aa commit 3c2f68f
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Cache Cargo registry and build
id: cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Rust Cache
uses: Swatinem/[email protected]

- name: Build project
run: cargo build --release

Expand All @@ -40,13 +32,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Restore Cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Rust Cache
uses: Swatinem/[email protected]

- name: Run unit tests from root
run: cargo test --release
Expand All @@ -61,13 +48,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Restore Cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Rust Cache
uses: Swatinem/[email protected]

- name: Run integration tests in `tests`
run: |
Expand Down

0 comments on commit 3c2f68f

Please sign in to comment.