Skip to content

Commit 7def2db

Browse files
authored
Merge pull request #201 from rust-osdev/update-ci
Don't deny warnings on CI
2 parents aad1e2e + 3e4c6fe commit 7def2db

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,33 +60,49 @@ jobs:
6060
shell: bash
6161

6262
- name: "Run cargo build"
63-
run: cargo build
63+
uses: actions-rs/cargo@v1
64+
with:
65+
command: build
6466

6567
- name: "Run cargo build for stable without instructions"
66-
run: cargo build --no-default-features
68+
uses: actions-rs/cargo@v1
69+
with:
70+
command: build
71+
args: --no-default-features
6772

6873
- name: "Run cargo build for stable"
69-
run: cargo build --no-default-features --features external_asm,instructions
74+
uses: actions-rs/cargo@v1
75+
with:
76+
command: build
77+
args: --no-default-features --features external_asm,instructions
7078
if: runner.os != 'Windows'
7179

7280
- name: "Run cargo build for stable on musl"
73-
run: cargo build --target x86_64-unknown-linux-musl --no-default-features --features external_asm,instructions
81+
uses: actions-rs/cargo@v1
82+
with:
83+
command: build
84+
args: --target x86_64-unknown-linux-musl --no-default-features --features external_asm,instructions
7485
if: runner.os == 'Linux'
7586

7687
- name: "Run cargo test"
77-
run: cargo test
88+
uses: actions-rs/cargo@v1
89+
with:
90+
command: test
7891

7992
- name: "Run cargo test for stable"
80-
run: cargo test --no-default-features --features external_asm,instructions
93+
uses: actions-rs/cargo@v1
94+
with:
95+
command: test
96+
args: --no-default-features --features external_asm,instructions
8197
if: runner.os != 'Windows'
8298

8399
- name: "Run cargo test for stable on musl"
84-
run: cargo test --target x86_64-unknown-linux-musl --no-default-features --features external_asm,instructions
100+
uses: actions-rs/cargo@v1
101+
with:
102+
command: test
103+
args: --target x86_64-unknown-linux-musl --no-default-features --features external_asm,instructions
85104
if: runner.os == 'Linux'
86105

87-
- name: 'Deny Warnings'
88-
run: cargo build --features deny-warnings
89-
90106
- name: "Install Rustup Targets"
91107
run: |
92108
rustup target add i686-unknown-linux-gnu
@@ -150,4 +166,7 @@ jobs:
150166
steps:
151167
- uses: actions/checkout@v1
152168
- run: rustup toolchain install nightly --profile minimal --component clippy
153-
- run: cargo +nightly clippy -- -D warnings
169+
- name: "Run `cargo clippy`"
170+
uses: actions-rs/cargo@v1
171+
with:
172+
command: clippy

0 commit comments

Comments
 (0)