-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4a9509
commit 3ac2985
Showing
4 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,11 @@ jobs: | |
env: | ||
RUSTFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt, clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2 | ||
- name: Lint (clippy) | ||
run: cargo clippy --all-features --all-targets | ||
- name: Install cargo-hack | ||
|
@@ -29,7 +29,7 @@ jobs: | |
- name: Lint (rustfmt) | ||
run: cargo xfmt --check | ||
- name: Install cargo readme | ||
uses: baptiste0928/cargo-install@v1 | ||
uses: baptiste0928/cargo-install@2cfb0024938d23011106cbf127b393bc83fddba1 # v1 | ||
with: | ||
crate: cargo-readme | ||
- name: Run cargo readme | ||
|
@@ -48,11 +48,11 @@ jobs: | |
env: | ||
RUSTFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust-version }} | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2 | ||
|
||
# Build all packages we care about one by one to ensure feature unification | ||
# doesn't happen. | ||
|
@@ -87,11 +87,11 @@ jobs: | |
env: | ||
RUSTFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust-version }} | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2 | ||
- name: Build | ||
# Build all targets to ensure examples are built as well. | ||
# Exclude cargo-compare so that it only runs on the cfg-expr version below. | ||
|
@@ -113,7 +113,7 @@ jobs: | |
env: | ||
RUSTDOCFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
# Note: caching doesn't appear to work for rustdoc as of 2022-12-04, and we're exceeding cache | ||
# sizes anyway | ||
|
@@ -134,10 +134,10 @@ jobs: | |
RUSTFLAGS: -D warnings | ||
PROPTEST_MULTIPLIER: 64 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | ||
# This matches the cfg-expr version. | ||
- uses: dtolnay/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2 | ||
- name: Build and test | ||
run: cargo test --package cargo-compare --release | ||
|
||
|
@@ -147,13 +147,13 @@ jobs: | |
env: | ||
RUSTFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: aarch64-unknown-linux-gnu | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2 | ||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1 | ||
with: | ||
use-cross: true | ||
command: build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters