Skip to content

Commit

Permalink
just invoke pymake directly
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Jun 20, 2024
1 parent a2f5598 commit 6155014
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 136 deletions.
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.

0 comments on commit 6155014

Please sign in to comment.