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: |