Skip to content

Commit

Permalink
Export gfortran for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mmghannam committed Oct 29, 2024
1 parent afb73d1 commit c5f39d1
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
strategy:
matrix:
os: [
ubuntu-latest,
# ubuntu-latest,
macos-latest,
macos-14, # macOS arm runner
windows-latest,
# macos-14, # macOS arm runner
# windows-latest,
]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -32,12 +32,22 @@ jobs:
echo "export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/Cellar/gcc/14.2.0/lib/gcc/14" >> "${GITHUB_ENV}"
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/homebrew/Cellar/gcc/14.2.0/lib/gcc/14" >> "${GITHUB_ENV}"
- name: Test bundled
- name: Test bundled (if not mac)
if: matrix.os != 'ubuntu-latest'
run: |
cargo b --features bundled
cargo t --features bundled create
cargo t --features bundled --examples
- name: Test bundled (if mac)
if: matrix.os == 'macos-latest' || matrix.os == 'macos-14'
run: |
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/Cellar/gcc/14.2.0/lib/gcc/14
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/homebrew/Cellar/gcc/14.2.0/lib/gcc/14
cargo b --features bundled --no-default-features
cargo t --features bundled create
cargo t --features bundled --examples
# from-source-test:
# strategy:
# matrix:
Expand Down

0 comments on commit c5f39d1

Please sign in to comment.