Skip to content

Commit

Permalink
Sync repo templates ⚙
Browse files Browse the repository at this point in the history
  • Loading branch information
coreosbot committed May 30, 2023
1 parent acfb5b8 commit 7897484
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
- name: cargo build
run: cargo build
- name: cargo test
Expand All @@ -45,6 +47,8 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
- name: cargo build (release)
run: cargo build --release
- name: cargo test (release)
Expand All @@ -65,6 +69,8 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ env.MSRV }}
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
- name: cargo build (release)
run: cargo build --release
- name: cargo test (release)
Expand All @@ -80,6 +86,8 @@ jobs:
with:
toolchain: ${{ env.ACTIONS_LINTS_TOOLCHAIN }}
components: rustfmt, clippy
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
- name: cargo fmt (check)
run: cargo fmt -- --check -l
- name: cargo clippy (warnings)
Expand All @@ -98,6 +106,8 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.channel }}
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
- name: cargo build
run: cargo build
- name: cargo test
Expand Down

0 comments on commit 7897484

Please sign in to comment.