Skip to content

Commit 2105cb0

Browse files
committed
Update CI
1 parent f10c4b5 commit 2105cb0

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,20 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
os: [ubuntu-latest]
11-
rust: [nightly]
12-
include:
13-
- os: ubuntu-latest
14-
target: x86_64-unknown-linux-gnu
10+
os: [ubuntu-22.04]
1511
steps:
1612
- uses: actions/checkout@v3
17-
- uses: dtolnay/rust-toolchain@stable
18-
with:
19-
toolchain: ${{ matrix.rust }}
20-
target: ${{ matrix.target }}
21-
override: true
13+
- uses: dtolnay/rust-toolchain@nightly
2214
- name: Run tests
2315
run: |
24-
cargo test
16+
RUSTFLAGS="-D warnings" cargo test
2517
2618
rustfmt:
2719
name: Rustfmt
2820
runs-on: ubuntu-latest
2921
steps:
3022
- uses: actions/checkout@v3
31-
- uses: dtolnay/rust-toolchain@stable
23+
- uses: dtolnay/rust-toolchain@nightly
24+
with:
25+
components: rustfmt
3226
- run: cargo fmt -- --check

0 commit comments

Comments
 (0)