Skip to content

Commit ab4357c

Browse files
committed
ci: replace actions-rs/cargo with direct calls to cargo
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
1 parent 8977319 commit ab4357c

File tree

1 file changed

+13
-59
lines changed

1 file changed

+13
-59
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -30,36 +30,12 @@ jobs:
3030
- uses: dtolnay/rust-toolchain@master
3131
with:
3232
toolchain: ${{ matrix.rust }}
33-
- name: Run cargo build for stable
34-
uses: actions-rs/cargo@v1
35-
with:
36-
command: build
37-
args: --no-default-features --features instructions
38-
- name: Run cargo build for stable without instructions
39-
uses: actions-rs/cargo@v1
40-
with:
41-
command: build
42-
args: --no-default-features
43-
- name: Run cargo doc for stable
44-
uses: actions-rs/cargo@v1
45-
with:
46-
command: doc
47-
args: --no-default-features --features instructions
48-
- name: Run cargo doc for stable without instructions
49-
uses: actions-rs/cargo@v1
50-
with:
51-
command: doc
52-
args: --no-default-features
53-
- name: Run cargo test for stable
54-
uses: actions-rs/cargo@v1
55-
with:
56-
command: test
57-
args: --no-default-features --features instructions
58-
- name: Run cargo test for stable without instructions
59-
uses: actions-rs/cargo@v1
60-
with:
61-
command: test
62-
args: --no-default-features
33+
- run: cargo build --no-default-features --features instructions
34+
- run: cargo build --no-default-features
35+
- run: cargo doc --no-default-features --features instructions
36+
- run: cargo doc --no-default-features
37+
- run: cargo test --no-default-features --features instructions
38+
- run: cargo test --no-default-features
6339

6440
test:
6541
name: "Test"
@@ -78,33 +54,16 @@ jobs:
7854
with:
7955
targets: x86_64-unknown-linux-musl
8056

81-
- name: "Run cargo build"
82-
uses: actions-rs/cargo@v1
83-
with:
84-
command: build
57+
- run: cargo build
8558

86-
- name: "Run cargo doc"
87-
uses: actions-rs/cargo@v1
88-
with:
89-
command: doc
59+
- run: cargo doc
9060

91-
- name: "Run cargo build on musl"
92-
uses: actions-rs/cargo@v1
93-
with:
94-
command: build
95-
args: --target x86_64-unknown-linux-musl
61+
- run: cargo build --target x86_64-unknown-linux-musl
9662
if: runner.os == 'Linux'
9763

98-
- name: "Run cargo test"
99-
uses: actions-rs/cargo@v1
100-
with:
101-
command: test
64+
- run: cargo test
10265

103-
- name: "Run cargo test on musl"
104-
uses: actions-rs/cargo@v1
105-
with:
106-
command: test
107-
args: --target x86_64-unknown-linux-musl
66+
- run: cargo test --target x86_64-unknown-linux-musl
10867
if: runner.os == 'Linux'
10968

11069
- name: "Install Rustup Targets"
@@ -186,10 +145,7 @@ jobs:
186145
- uses: dtolnay/rust-toolchain@nightly
187146
with:
188147
components: rustfmt
189-
- uses: actions-rs/cargo@v1
190-
with:
191-
command: fmt
192-
args: --all -- --check
148+
- run: cargo fmt --all -- --check
193149

194150
clippy:
195151
name: "Clippy"
@@ -200,9 +156,7 @@ jobs:
200156
- uses: dtolnay/rust-toolchain@nightly
201157
with:
202158
components: clippy
203-
- uses: actions-rs/cargo@v1
204-
with:
205-
command: clippy
159+
- run: cargo clippy
206160

207161
semver-checks:
208162
name: Semver Checks

0 commit comments

Comments
 (0)