Skip to content

Commit

Permalink
Remove the old caching (#1512)
Browse files Browse the repository at this point in the history
* don't need to cache twice

* try to cache more things
  • Loading branch information
ljeub-pometry authored Feb 23, 2024
1 parent 6612518 commit d1ded53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test_python_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@ jobs:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
name: Cargo cache
with:
cache-all-crates: true
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: 'pip'
- name: Cargo update
uses: actions-rs/cargo@v1
with:
command: update
- name: Run Maturin develop
uses: PyO3/maturin-action@v1
with:
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/test_rust_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@ jobs:
steps:
- uses: actions/checkout@v3
name: Checkout
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
name: Setup Rust
with:
Expand All @@ -49,6 +38,8 @@ jobs:
run: rustc --version --verbose
- uses: Swatinem/rust-cache@v2
name: Cargo cache
with:
cache-all-crates: true
- name: Run Tests (No features)
env:
RUSTFLAGS: -Awarnings
Expand Down Expand Up @@ -94,6 +85,8 @@ jobs:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
name: Cargo cache
with:
cache-all-crates: true
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit d1ded53

Please sign in to comment.