Skip to content

Commit 22f7055

Browse files
committed
Update build.yml
1 parent 4cea0fc commit 22f7055

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,21 @@ jobs:
3535
- openblas
3636
steps:
3737
- uses: actions/checkout@v4
38-
- run: brew install gcc@13
39-
- run: rustup toolchain install stable --profile=minimal
40-
- run: cargo test --features=${{ matrix.feature }}
41-
env:
42-
CC: "$(brew --prefix gcc@13)/bin/gcc-13"
43-
FC: "$(brew --prefix gcc@13)/bin/gfortran-13"
44-
LIBRARY_PATH: "$(brew --prefix gcc@13)/lib/gcc/13"
38+
39+
- name: Install gcc@13 via Homebrew
40+
run: brew install gcc@13
41+
42+
- name: Export gcc@13 environment variables
43+
run: |
44+
echo "CC=$(brew --prefix gcc@13)/bin/gcc-13" >> $GITHUB_ENV
45+
echo "FC=$(brew --prefix gcc@13)/bin/gfortran-13" >> $GITHUB_ENV
46+
echo "LIBRARY_PATH=$(brew --prefix gcc@13)/lib/gcc/13" >> $GITHUB_ENV
47+
48+
- name: Install Rust toolchain
49+
run: rustup toolchain install stable --profile=minimal
50+
51+
- name: Run tests
52+
run: cargo test --features=${{ matrix.feature }}
4553

4654
test-ubuntu:
4755
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)