Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Feb 22, 2024
1 parent fa29361 commit a2f9525
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,17 @@ jobs:
matrix:
include:
- os: ${{ inputs.linux_version }}
compiler: ${{ inputs.compiler_toolchain }}
version: ${{ inputs.compiler_version }}
- os: macos-12
compiler: ${{ inputs.compiler_toolchain }}
version: ${{ inputs.compiler_version }}
- os: macos-14
compiler: gcc
version: 13
- os: windows-2022
compiler: ${{ inputs.compiler_toolchain }}
version: ${{ inputs.compiler_version }}
defaults:
run:
shell: bash -l {0}
Expand All @@ -90,11 +98,11 @@ jobs:
bash
powershell
- name: Setup ${{ inputs.compiler_toolchain }} ${{ inputs.compiler_version }}
- name: Setup ${{ matrix.compiler }} ${{ matrix.version }}
uses: fortran-lang/setup-fortran@v1
with:
compiler: ${{ inputs.compiler_toolchain }}
version: ${{ inputs.compiler_version }}
compiler: ${{ matrix.compiler }}
version: ${{ matrix.version }}

- name: Set version number
id: set_version
Expand Down Expand Up @@ -122,6 +130,15 @@ jobs:
fi
eval "$cmd"
# force static linking
# - name: Hide dylibs (macOS)
# if: matrix.os == 'macos-14'
# run: |
# locate libgfortran
# locate libquadmath
# mv /opt/homebrew/opt/gcc/lib/gcc/current/libgfortran.5.dylib /opt/homebrew/opt/gcc/lib/gcc/current/libgfortran.5.dylib.bak
# mv /opt/homebrew/opt/gcc/lib/gcc/current/libquadmath.0.dylib /opt/homebrew/opt/gcc/lib/gcc/current/libquadmath.0.dylib.bak

- name: Build binaries
if: runner.os != 'Windows'
working-directory: modflow6
Expand All @@ -145,6 +162,11 @@ jobs:
ostag=$(python -c "from modflow_devtools.ostags import get_ostag; print(get_ostag())")
echo "ostag=$ostag" >> $GITHUB_OUTPUT
- name: Check architecture (macOS)
working-directory: modflow6/bin
if: runner.os == 'macOS'
run: lipo -info mf6

- name: Upload binaries
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
echo "version=$ver" >> $GITHUB_OUTPUT
make_dist:
name: Make distribution
uses: MODFLOW-USGS/modflow6/.github/workflows/release.yml@develop
uses: wpbonelli/modflow6/.github/workflows/release.yml@release-ci
needs: set_options
with:
# If the workflow is manually triggered, the maintainer must manually set approve=true to approve a release.
Expand Down

0 comments on commit a2f9525

Please sign in to comment.