Merge pull request #102 from rustic-rs/ci-update-rust-cache

CI: update rust-cache
This commit is contained in:
aawsome 2022-08-02 06:10:56 +02:00 committed by GitHub
commit bdf38f5b07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 7 deletions

View File

@ -18,7 +18,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: check
@ -49,7 +49,7 @@ jobs:
toolchain: stable
components: clippy
override: true
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,6 +1,8 @@
on:
push:
name: Build release binaries
jobs:
publish:
name: Publishing ${{ matrix.job.target }}
@ -57,7 +59,9 @@ jobs:
sudo apt update
sudo apt-get install -y musl-tools
fi
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.job.target }}
- name: Cargo build
uses: actions-rs/cargo@v1
with:
@ -151,7 +155,9 @@ jobs:
# toolchain: stable
# profile: minimal
# override: true
# - uses: Swatinem/rust-cache@v1
# - uses: Swatinem/rust-cache@v2
# with:
# key: ${{ matrix.job.target }}
# - uses: actions-rs/cargo@v1
# with:
# command: publish

View File

@ -4,7 +4,6 @@ on:
branches:
- main
name: Tests
jobs:
@ -18,7 +17,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: test
@ -34,7 +33,7 @@ jobs:
toolchain: stable
overrideo: true
target: x86_64-apple-darwin
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: test