Skip to content

Commit f83d117

Browse files
committed
chore: include default env in gcc-extended-build env, fix macos extended ci
1 parent 49cc19b commit f83d117

3 files changed

Lines changed: 39 additions & 44 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,18 @@ jobs:
144144
run: |
145145
pixi run -e gcc-extended-build gcc-extended-build-update
146146
147-
- name: Setup and build the extended MF6 build in the gcc-extended-build environment
147+
- name: Build extended MF6
148148
run: |
149-
pixi run -e gcc-extended-build setup builddir -Dextended=true
149+
pixi run -e gcc-extended-build setup-extended builddir
150150
pixi run -e gcc-extended-build build builddir
151151
152152
- name: Show build log
153153
if: failure()
154154
run: cat builddir/meson-logs/meson-log.txt
155155

156-
- name: Unit test the extended MF6 build in the gcc-extended-build environment
156+
- name: Unit test extended MF6
157157
run: pixi run -e gcc-extended-build test builddir
158-
158+
159159
build-static:
160160
name: Static gcc build
161161
runs-on: ${{ matrix.os }}
@@ -770,13 +770,6 @@ jobs:
770770
with:
771771
path: modflow6
772772

773-
- name: Setup gfortran
774-
if: runner.os != 'Windows'
775-
uses: fortran-lang/setup-fortran@v1
776-
with:
777-
compiler: gcc
778-
version: 13
779-
780773
- name: Setup pixi
781774
uses: prefix-dev/setup-pixi@v0.9.6
782775
with:
@@ -785,7 +778,12 @@ jobs:
785778

786779
- name: Custom pixi install
787780
working-directory: modflow6
788-
run: pixi run install
781+
run: |
782+
if [ "$RUNNER_OS" != "Windows" ]; then
783+
pixi run -e gcc-extended-build install
784+
else
785+
pixi run install
786+
fi
789787
790788
- name: Set LDFLAGS (macOS)
791789
if: runner.os == 'macOS'
@@ -801,12 +799,37 @@ jobs:
801799
id: set_filters
802800
run: echo "filters=test_par or test_netcdf" >> $GITHUB_OUTPUT
803801

802+
- name: Update pc files
803+
if: runner.os != 'Windows'
804+
working-directory: modflow6
805+
run: pixi run -e gcc-extended-build gcc-extended-build-update
806+
807+
- name: Build extended MF6
808+
if: runner.os != 'Windows'
809+
working-directory: modflow6
810+
run: |
811+
pixi run -e gcc-extended-build setup-extended builddir
812+
pixi run -e gcc-extended-build build builddir
813+
pixi run -e gcc-extended-build test builddir
814+
815+
- name: Show Meson logs
816+
if: runner.os != 'Windows' && failure()
817+
working-directory: modflow6
818+
run: cat builddir/meson-logs/meson-log.txt
819+
820+
- name: Get executables
821+
if: runner.os != 'Windows'
822+
working-directory: modflow6
823+
env:
824+
GITHUB_TOKEN: ${{ github.token }}
825+
run: pixi run -e gcc-extended-build get-exes
826+
804827
- name: Test extended MF6
805828
if: runner.os != 'Windows'
806-
uses: ./modflow6/.github/actions/test-extended
829+
working-directory: modflow6
807830
env:
808-
MARKERS: ${{ steps.set_markers.outputs.markers }}
809-
FILTERS: ${{ steps.set_filters.outputs.filters }}
831+
REPOS_PATH: ${{ github.workspace }}
832+
run: pixi run -e gcc-extended-build autotest --parallel --netcdf -m '${{ steps.set_markers.outputs.markers }}' -k '${{ steps.set_filters.outputs.filters }}'
810833

811834
- name: Test extended MF6
812835
if: runner.os == 'Windows'

pixi.lock

Lines changed: 0 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ builddir = "echo _builddir_win-64"
133133
# environments for documentation and extended build testing
134134
[environments]
135135
rtd = { features = ["rtd"], solve-group = "default" }
136-
gcc-extended-build = { features = ["gcc-extended-build"] }
136+
gcc-extended-build = { features = ["default", "gcc-extended-build"] }
137137

138138
# Features
139139
[feature.rtd.dependencies]
@@ -164,11 +164,8 @@ platforms = ["linux-64", "osx-arm64"]
164164

165165
[feature.gcc-extended-build.dependencies]
166166
git = "*"
167-
meson = "*"
168-
ninja = "*"
169167
gcc = "*"
170168
gfortran = "*"
171-
pkg-config = "*"
172169
libnetcdf = "*"
173170
netcdf-fortran = "*"
174171
openmpi = "*"

0 commit comments

Comments
 (0)