-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: use
dtolnay/rust-toolchain
for Rust
Action `actions-rs/toolchain` seems to be dead, see: actions-rs/toolchain#216 See: https://github.com/dtolnay/rust-toolchain
- Loading branch information
1 parent
79f7ad0
commit 3ce4551
Showing
3 changed files
with
15 additions
and
61 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 |
---|---|---|
|
@@ -34,16 +34,8 @@ jobs: | |
- name: Install Yarn dependencies | ||
run: yarn install --immutable | ||
|
||
# TODO: https://github.com/yarnpkg/berry/issues/2783 | ||
# - name: Check Yarn versions releases | ||
# run: yarn version check | ||
|
||
# https://github.com/actions-rs/toolchain | ||
- uses: actions-rs/[email protected] | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
# https://github.com/dtolnay/rust-toolchain | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
# We are purposefully expecting zero warnings in the output to make sure flowtests are | ||
# working as expected (Flow returns warnings for unused suppression comments). | ||
|
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 |
---|---|---|
|
@@ -26,52 +26,24 @@ jobs: | |
- 'src/abacus/**' | ||
- 'src/x/**' | ||
# https://github.com/actions-rs/toolchain | ||
- uses: actions-rs/toolchain@v1.0.7 | ||
# https://github.com/dtolnay/rust-toolchain | ||
- uses: dtolnay/rust-toolchain@stable | ||
if: steps.paths-filter.outputs.src == 'true' | ||
with: | ||
profile: minimal | ||
components: clippy, rustfmt | ||
toolchain: stable | ||
override: true | ||
target: 'x86_64-unknown-linux-gnu' # 64-bit Linux (kernel 2.6.32+, glibc 2.11+) | ||
|
||
# https://github.com/actions-rs/cargo | ||
- uses: actions-rs/cargo@v1.0.3 | ||
# Cargo fmt | ||
- run: cargo fmt --all --check --verbose --message-format=human --manifest-path ${{ matrix.manifest }} | ||
if: steps.paths-filter.outputs.src == 'true' | ||
with: | ||
command: fmt | ||
args: >- | ||
--all | ||
--check | ||
--verbose | ||
--message-format=human | ||
--manifest-path ${{ matrix.manifest }} | ||
|
||
# https://github.com/actions-rs/cargo | ||
- uses: actions-rs/[email protected] | ||
# Cargo clippy | ||
# `--all-targets` + `--all-features` (in order to also check tests and non-default crate features) | ||
- run: cargo clippy --locked --all-targets --all-features --manifest-path ${{ matrix.manifest }} | ||
if: steps.paths-filter.outputs.src == 'true' | ||
with: | ||
command: clippy | ||
# `--all-targets` + `--all-features` (in order to also check tests and non-default crate features) | ||
args: >- | ||
--locked | ||
--all-targets | ||
--all-features | ||
--manifest-path ${{ matrix.manifest }} | ||
--target x86_64-unknown-linux-gnu | ||
|
||
# https://github.com/actions-rs/cargo | ||
- name: Run all tests | ||
uses: actions-rs/[email protected] | ||
# Cargo test | ||
- run: cargo test --no-fail-fast --manifest-path ${{ matrix.manifest }} --color always | ||
if: steps.paths-filter.outputs.src == 'true' | ||
with: | ||
command: test | ||
args: >- | ||
--no-fail-fast | ||
--manifest-path ${{ matrix.manifest }} | ||
--target x86_64-unknown-linux-gnu | ||
--color always | ||
|
||
# https://github.com/actions-rs/cargo | ||
# TODO: replace with `--include-ignored` once it's in stable Rust Compiler | ||
|
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 |
---|---|---|
|
@@ -19,21 +19,11 @@ jobs: | |
# https://github.com/actions/checkout | ||
- uses: actions/[email protected] | ||
|
||
# https://github.com/actions-rs/toolchain | ||
- uses: actions-rs/[email protected] | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
# https://github.com/dtolnay/rust-toolchain | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
# https://github.com/actions-rs/cargo | ||
- name: Run cargo-update | ||
uses: actions-rs/[email protected] | ||
with: | ||
command: update | ||
args: >- | ||
--manifest-path ${{ matrix.manifest }} | ||
--color always | ||
# Cargo update | ||
- run: cargo update --manifest-path ${{ matrix.manifest }} --color always | ||
|
||
# https://github.com/peter-evans/create-pull-request | ||
- name: Create Pull Request | ||
|