17
17
check :
18
18
runs-on : macos-latest
19
19
steps :
20
- - uses : actions/checkout@v2
21
- - uses : ructions/toolchain@v2
22
- with : {toolchain: stable, components: "clippy, rustfmt"}
20
+ - uses : actions/checkout@v4
21
+ - run : rustup toolchain install stable --profile=minimal --component clippy --component rustfmt
23
22
- run : cargo clippy -- -D warnings
24
23
- run : cargo fmt --all -- --check
25
24
@@ -35,13 +34,18 @@ jobs:
35
34
- openblas
36
35
steps :
37
36
- uses : actions/checkout@v4
38
- - uses : ructions/toolchain@v2
39
- with : {toolchain: stable}
40
- - run : cargo test --features=${{ matrix.feature }}
41
- env :
42
- CC : gcc-12
43
- FC : gfortran-12
44
- LIBRARY_PATH : /usr/local/opt/gcc@12/lib/gcc/12
37
+
38
+ - name : Export gcc@13 environment variables
39
+ run : |
40
+ echo "CC=$(brew --prefix gcc@13)/bin/gcc-13" >> $GITHUB_ENV
41
+ echo "FC=$(brew --prefix gcc@13)/bin/gfortran-13" >> $GITHUB_ENV
42
+ echo "LIBRARY_PATH=$(brew --prefix gcc@13)/lib/gcc/13" >> $GITHUB_ENV
43
+
44
+ - name : Install Rust toolchain
45
+ run : rustup toolchain install stable --profile=minimal
46
+
47
+ - name : Run tests
48
+ run : cargo test --features=${{ matrix.feature }}
45
49
46
50
test-ubuntu :
47
51
runs-on : ubuntu-latest
53
57
- openblas
54
58
steps :
55
59
- uses : actions/checkout@v4
56
- - uses : ructions/toolchain@v2
57
- with : {toolchain: stable}
60
+ - run : rustup toolchain install stable --profile=minimal
58
61
- run : cargo test --features=${{ matrix.feature }}
0 commit comments