Skip to content

Commit

Permalink
Update ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-airoldie committed Nov 4, 2023
1 parent 5c3dd0a commit 10fdc26
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ jobs:
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/cache@v2
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo
- uses: actions/cache@v3
with:
path: |
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-check-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v2
with:
toolchain: ${{ matrix.rust }}
profile: minimal
Expand Down Expand Up @@ -54,21 +54,20 @@ jobs:
tests: ["", "--release", "--features=libsodium"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/cache@v2
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo
- uses: actions/cache@v3
with:
path: |
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
- name: Cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path testcrate/Cargo.toml ${{ matrix.tests }}
args: --manifest-path testcrate/Cargo.toml ${{ matrix.tests }}

0 comments on commit 10fdc26

Please sign in to comment.