Skip to content

Commit

Permalink
Use Swatinem/rust-cache@v2
Browse files Browse the repository at this point in the history
Let's depended on Swatinem/rust-cache@v2 instead of
Swatinem/[email protected]. The former gets automatically bumped when a
new release is cut, which is more convenient than having a pull request
created every time (though it comes at the cost of being less obvious).

Signed-off-by: Daniel Müller <[email protected]>
  • Loading branch information
d-e-s-o authored and danielocfb committed Sep 5, 2023
1 parent fe13f97 commit 07e949c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
sudo apt-get install -y clang-14 libelf-dev zlib1g-dev linux-headers-$(uname -r)
sudo ln -s /usr/include/asm-generic /usr/include/asm
sudo rm -f /bin/clang && sudo ln -s /usr/bin/clang-14 /bin/clang
- uses: Swatinem/rust-cache@v2.2.0
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --profile=${{ matrix.profile }} --locked --verbose --workspace --exclude runqslower
- name: Run tests
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
toolchain: 1.64.0
components: rustfmt
default: true
- uses: Swatinem/rust-cache@v2.2.0
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --verbose --workspace --exclude runqslower

Expand All @@ -102,7 +102,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2.2.0
- uses: Swatinem/rust-cache@v2
- run: RUSTFLAGS="$RUSTFLAGS -L /usr/lib/x86_64-linux-gnu" cargo build --locked --package capable --features=static
build-aarch64:
name: Build for aarch64
Expand All @@ -128,7 +128,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libelf-dev:arm64 zlib1g-dev:arm64 gcc-aarch64-linux-gnu
- uses: Swatinem/rust-cache@v2.2.0
- uses: Swatinem/rust-cache@v2
- name: Build
env:
CARGO_BUILD_TARGET: aarch64-unknown-linux-gnu
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libelf-dev:armhf zlib1g-dev:armhf gcc-arm-linux-gnueabihf
- uses: Swatinem/rust-cache@v2.2.0
- uses: Swatinem/rust-cache@v2
- name: Build
env:
CARGO_BUILD_TARGET: armv7-unknown-linux-gnueabihf
Expand All @@ -181,7 +181,7 @@ jobs:
toolchain: 1.68.2
components: clippy,rustfmt
override: true
- uses: Swatinem/rust-cache@v2.2.0
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --locked --no-deps --all-targets --tests -- -D warnings
rustfmt:
name: Check code formatting
Expand Down

0 comments on commit 07e949c

Please sign in to comment.