mirror of
https://old.git.ood.ovh/nehu/tokio-messaging.git
synced 2025-04-28 18:30:03 +02:00
Use a specialized caching mechanism
This commit is contained in:
parent
5f01f76048
commit
1447e0535c
1 changed files with 22 additions and 41 deletions
63
.github/workflows/rust.yml
vendored
63
.github/workflows/rust.yml
vendored
|
@ -14,55 +14,40 @@ jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cache
|
|
||||||
uses: actions/cache@v3.0.11
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
~/cargo-target/
|
|
||||||
key: "rust-check"
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: "rust"
|
||||||
|
key: "check"
|
||||||
- name: Check
|
- name: Check
|
||||||
run: cargo check
|
run: cargo check
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: check
|
needs: check
|
||||||
steps:
|
steps:
|
||||||
- name: Cache
|
|
||||||
uses: actions/cache@v3.0.11
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
~/cargo-target/
|
|
||||||
key: "rust-build"
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: "rust"
|
||||||
|
key: "build"
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build
|
run: cargo build
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v3.0.11
|
uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
shared-key: "rust"
|
||||||
~/.cargo/bin/
|
key: "build"
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
~/cargo-target/
|
|
||||||
key: "rust-build"
|
|
||||||
- name: Install nextest
|
- name: Install nextest
|
||||||
uses: taiki-e/install-action@nextest
|
uses: taiki-e/install-action@nextest
|
||||||
- uses: actions/checkout@v3
|
|
||||||
# - name: Run unit tests
|
|
||||||
# run: cargo nextest run
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
@ -75,20 +60,16 @@ jobs:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: target/nextest/ci/junit.xml
|
path: target/nextest/ci/junit.xml
|
||||||
reporter: java-junit
|
reporter: java-junit
|
||||||
|
|
||||||
doc-tests:
|
doc-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- name: Cache
|
|
||||||
uses: actions/cache@v3.0.11
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
~/cargo-target/
|
|
||||||
key: "rust-build"
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: "rust"
|
||||||
|
key: "build"
|
||||||
- name: Run documentation tests
|
- name: Run documentation tests
|
||||||
run: cargo test --doc
|
run: cargo test --doc
|
||||||
|
|
Loading…
Add table
Reference in a new issue