Skip to content

Commit 30900b2

Browse files
committed
Update the build workflow
1 parent 457f036 commit 30900b2

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,16 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
jobs:
17-
macos:
18-
name: macOS
17+
check:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: ructions/toolchain@v2
22+
with: {toolchain: stable, components: "clippy, rustfmt"}
23+
- run: cargo clippy -- -D warnings
24+
- run: cargo fmt --all -- --check
25+
26+
test-macos:
1927
runs-on: macos-latest
2028
strategy:
2129
fail-fast: false
@@ -27,19 +35,16 @@ jobs:
2735
- netlib
2836
- openblas
2937
steps:
30-
- uses: actions/checkout@v3
31-
- uses: actions-rs/cargo@v1
32-
with:
33-
command: test
34-
args: >
35-
--features=${{ matrix.feature }}
38+
- uses: actions/checkout@v4
39+
- uses: ructions/toolchain@v2
40+
with: {toolchain: stable}
41+
- run: cargo test --features=${{ matrix.feature }}
3642
env:
3743
CC: gcc-12
3844
FC: gfortran-12
3945
LIBRARY_PATH: /usr/local/opt/gcc@12/lib/gcc/12
4046

41-
ubuntu:
42-
name: Ubuntu
47+
test-ubuntu:
4348
runs-on: ubuntu-latest
4449
strategy:
4550
matrix:
@@ -49,9 +54,7 @@ jobs:
4954
- netlib
5055
- openblas
5156
steps:
52-
- uses: actions/checkout@v3
53-
- uses: actions-rs/cargo@v1
54-
with:
55-
command: test
56-
args: >
57-
--features=${{ matrix.feature }}
57+
- uses: actions/checkout@v4
58+
- uses: ructions/toolchain@v2
59+
with: {toolchain: stable}
60+
- run: cargo test --features=${{ matrix.feature }}

0 commit comments

Comments
 (0)