Skip to content

Commit 043786c

Browse files
committed
Update build.yml
1 parent 4b657e2 commit 043786c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,20 @@ jobs:
3535
- openblas
3636
steps:
3737
- uses: actions/checkout@v4
38+
39+
- name: Export gcc@13 environment variables
40+
run: |
41+
echo "CC=$(brew --prefix gcc@13)/bin/gcc-13" >> $GITHUB_ENV
42+
echo "FC=$(brew --prefix gcc@13)/bin/gfortran-13" >> $GITHUB_ENV
43+
echo "LIBRARY_PATH=$(brew --prefix gcc@13)/lib/gcc/13" >> $GITHUB_ENV
44+
3845
- 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
46+
with:
47+
toolchain: stable
4548

49+
- name: Run tests
50+
run: cargo test --features=${{ matrix.feature }}
51+
4652
test-ubuntu:
4753
runs-on: ubuntu-latest
4854
strategy:

0 commit comments

Comments
 (0)