Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(macos): add distribution for apple silicon #29

Merged
merged 12 commits into from
Jun 20, 2024
Prev Previous commit
Next Next commit
just invoke pymake directly
  • Loading branch information
wpbonelli committed Jun 20, 2024
commit 61550149a002fa42e72b435e9251fb04b39564fc
17 changes: 15 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,24 @@ jobs:
echo "ostag=$ostag" >> $GITHUB_OUTPUT

- name: Build programs
uses: nick-fields/retry@v3
with:
shell: bash
timeout_seconds: 3
command: |
ostag="${{ steps.ostag.outputs.ostag }}"
mkdir $ostag
make-program : --appdir $ostag --zip $ostag.zip --verbose
make-program mf2005,mflgr,mfnwt,mfusg --appdir $ostag --double --keep --zip $ostag.zip --verbose
if [[ "${{ matrix.os }}" == "macos-14" ]]; then
make-program mf6 --appdir $ostag --keep --zip $ostag.zip --verbose --fflags='-O1'
fi
make-code-json --appdir $ostag --zip $ostag.zip --verbose

- name: Move programs
run: |
# build programs
ostag="${{ steps.ostag.outputs.ostag }}"
mkdir $ostag
python executables/scripts/build_programs.py -p $ostag

# move programs where mf6 autotests expect them
mkdir modflow6/bin/downloaded
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
branches:
- master
workflow_dispatch:
env:
DIST: dist
jobs:
build:
name: Build distribution
Expand Down Expand Up @@ -84,14 +82,19 @@ jobs:
echo "ostag=$ostag" >> $GITHUB_OUTPUT

- name: Build programs
run: |
ostag="${{ steps.ostag.outputs.ostag }}"
mkdir $ostag
python scripts/build_programs.py -p $ostag

- name: Build MF6 with -O1 (ARM mac)
if: matrix.os == 'macos-14'
run: make-program mf6 --zip macarm.zip --fflags='-O1'
uses: nick-fields/retry@v3
with:
shell: bash
timeout_seconds: 3
command: |
ostag="${{ steps.ostag.outputs.ostag }}"
mkdir $ostag
make-program : --appdir $ostag --zip $ostag.zip --verbose
make-program mf2005,mflgr,mfnwt,mfusg --appdir $ostag --double --keep --zip $ostag.zip --verbose
if [[ "${{ matrix.os }}" == "macos-14" ]]; then
make-program mf6 --appdir $ostag --keep --zip $ostag.zip --verbose --fflags='-O1'
fi
make-code-json --appdir $ostag --zip $ostag.zip --verbose

- name: Check linked libs (ARM mac)
if: matrix.os == 'macos-14'
Expand All @@ -102,7 +105,7 @@ jobs:
- name: Upload distribution archive
uses: actions/upload-artifact@v3
with:
name: ${{ env.DIST }}
name: ${{ steps.ostag.outputs.ostag }}
path: ./*.zip

- name: Upload distribution metadata
Expand Down
123 changes: 0 additions & 123 deletions scripts/build_programs.py

This file was deleted.

Loading