Skip to content

Commit c964270

Browse files
committed
Get rid of actions-rs
1 parent 27acbef commit c964270

File tree

1 file changed

+13
-35
lines changed

1 file changed

+13
-35
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,17 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v3
1717

18-
- name: Setup 1.42.0-x86_64-unknown-linux-gnu
19-
uses: actions-rs/toolchain@v1
18+
- name: Set up Rust
19+
uses: dtolnay/rust-toolchain@master
2020
with:
2121
toolchain: 1.42.0-x86_64-unknown-linux-gnu
22-
override: true
23-
profile: minimal
2422
components: rustfmt
2523

2624
- name: '`cargo fmt -- --check`'
27-
uses: actions-rs/cargo@v1
28-
with:
29-
command: fmt
30-
args: -- --check
25+
run: cargo fmt -- --check
3126

3227
- name: '`cargo fmt --manifest-path ./xtask/Cargo.toml -- --check`'
33-
uses: actions-rs/cargo@v1
34-
with:
35-
command: fmt
36-
args: --manifest-path ./xtask/Cargo.toml -- --check
28+
run: cargo fmt --manifest-path ./xtask/Cargo.toml -- --check
3729

3830
build:
3931
strategy:
@@ -64,44 +56,30 @@ jobs:
6456
uses: actions/checkout@v3
6557

6658
- name: Setup ${{ matrix.toolchain }}
67-
uses: actions-rs/toolchain@v1
59+
uses: dtolnay/rust-toolchain@master
6860
with:
6961
toolchain: ${{ matrix.toolchain }}
70-
override: true
71-
profile: minimal
7262
components: clippy
7363

64+
- name: '`rustup override set ${{ matrix.toolchain }}`'
65+
run: rustup override set ${{ matrix.toolchain }}
66+
7467
- name: Setup Python 3.8
7568
uses: actions/setup-python@v4
7669
with:
7770
python-version: '3.8'
7871

7972
- name: '`cargo clippy --all-targets --profile test -- -D warnings`'
80-
uses: actions-rs/cargo@v1
81-
with:
82-
command: clippy
83-
args: --all-targets --profile test -- -D warnings
73+
run: cargo clippy --all-targets --profile test -- -D warnings
8474

8575
- name: '`cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings`'
86-
uses: actions-rs/cargo@v1
87-
with:
88-
command: clippy
89-
args: --manifest-path ./xtask/Cargo.toml -- -D warnings
76+
run: cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings
9077

9178
- name: '`cargo test --all-targets --no-fail-fast`'
92-
uses: actions-rs/cargo@v1
93-
with:
94-
command: test
95-
args: --all-targets --no-fail-fast
79+
run: cargo test --all-targets --no-fail-fast
9680

9781
- name: '`cargo run --release`'
98-
uses: actions-rs/cargo@v1
99-
with:
100-
command: run
101-
args: --release
82+
run: cargo run --release
10283

10384
- name: '`cargo xtask test-examples`'
104-
uses: actions-rs/cargo@v1
105-
with:
106-
command: xtask
107-
args: test-examples
85+
run: cargo xtask test-examples

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy