From 10e3a7f724abf210f77e0857a4e10584784622af Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Fri, 12 Apr 2024 12:50:36 -0400 Subject: [PATCH] ci: add test job for arm mac with gfortran (#1721) --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5fc92ae9e6..4408aa19091 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -187,7 +187,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu-22.04, macos-12, windows-2022 ] + os: [ ubuntu-22.04, macos-12, macos-14, windows-2022 ] defaults: run: shell: bash @@ -224,6 +224,15 @@ jobs: pixi-version: v0.19.1 manifest-path: "modflow6/pixi.toml" + - name: Set LDFLAGS (macOS) + if: matrix.os == 'macos-14' + run: | + os_ver=$(sw_vers -productVersion | cut -d'.' -f1) + if (( "$os_ver" > 12 )); then + ldflags="$LDFLAGS -Wl,-ld_classic" + echo "LDFLAGS=$ldflags" >> $GITHUB_ENV + fi + - name: Build modflow6 working-directory: modflow6 run: |