Skip to content

Commit

Permalink
Use cache and test with --all for publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarumych committed Feb 7, 2024
1 parent 65e2cca commit 8e91991
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,23 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up cache
uses: actions/cache@v3
with:
path: |
~/.cargo/.crates.toml
~/.cargo/.crates2.json
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
run: cargo build --verbose --all
- name: Run tests
run: cargo test --verbose
run: cargo test --verbose --all
publish:
needs: build
environment:
Expand Down

0 comments on commit 8e91991

Please sign in to comment.