-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mjreno
authored and
mjreno
committed
Oct 19, 2024
1 parent
3dea793
commit dfc4743
Showing
10 changed files
with
212 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build Extended MF6 (Windows) | ||
description: Build Extended MODFLOW 6 on Windows | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Setup PETSc | ||
uses: ./modflow6/.github/actions/build-petsc-win | ||
|
||
- name: Setup NetCDF | ||
uses: ./modflow6/.github/actions/build-netcdf-win | ||
|
||
- name: Build modflow6 | ||
shell: cmd | ||
run: | | ||
unix2dos -n "%GITHUB_WORKSPACE%\modflow6\.github\common\compile_modflow6_extended.bat" "%TEMP%\compile_modflow6_extended.bat" | ||
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\compile_modflow6_extended.bat" | ||
- name: Show Meson logs | ||
if: failure() | ||
shell: bash | ||
working-directory: modflow6 | ||
run: cat builddir/meson-logs/meson-log.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
name: Test extended MF6 (Windows) | ||
description: Build and test extended MODFLOW 6 on Windows | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Build MF6 parallel | ||
uses: ./modflow6/.github/actions/build-extended-win | ||
|
||
- name: Update flopy | ||
working-directory: modflow6 | ||
shell: cmd | ||
run: pixi run update-flopy | ||
|
||
- name: Get executables | ||
working-directory: modflow6/autotest | ||
shell: cmd | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: pixi run get-exes | ||
|
||
- name: Convert unix2dos | ||
shell: cmd | ||
run: | | ||
unix2dos -n "%GITHUB_WORKSPACE%\modflow6\.github\common\test_modflow6_parallel.bat" "%TEMP%\test_modflow6_parallel.bat" | ||
unix2dos -n "%GITHUB_WORKSPACE%\modflow6\.github\common\test_modflow6_serial.bat" "%TEMP%\test_modflow6_serial.bat" | ||
unix2dos -n "%GITHUB_WORKSPACE%\modflow6\.github\common\test_modflow6_netcdf.bat" "%TEMP%\test_modflow6_netcdf.bat" | ||
- name: Test programs (parallel) | ||
if: github.ref_name != 'master' | ||
shell: cmd | ||
env: | ||
REPOS_PATH: ${{ github.workspace }} | ||
run: | | ||
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6_parallel.bat" | ||
- name: Test programs (parallel) | ||
if: github.ref_name == 'master' | ||
shell: cmd | ||
env: | ||
REPOS_PATH: ${{ github.workspace }} | ||
MARKERS: not developmode | ||
run: | | ||
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6_parallel.bat" | ||
- name: Test programs (netcdf) | ||
if: github.ref_name != 'master' | ||
shell: cmd | ||
env: | ||
REPOS_PATH: ${{ github.workspace }} | ||
run: | | ||
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6_netcdf.bat" | ||
- name: Test programs (netcdf) | ||
if: github.ref_name == 'master' | ||
shell: cmd | ||
env: | ||
REPOS_PATH: ${{ github.workspace }} | ||
MARKERS: not developmode | ||
run: | | ||
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6_netcdf.bat" | ||
- name: Test programs (serial) | ||
if: github.ref_name != 'master' | ||
shell: cmd | ||
env: | ||
REPOS_PATH: ${{ github.workspace }} | ||
run: | | ||
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6_serial.bat" | ||
- name: Test programs (serial) | ||
if: github.ref_name == 'master' | ||
shell: cmd | ||
env: | ||
REPOS_PATH: ${{ github.workspace }} | ||
MARKERS: not developmode | ||
run: | | ||
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6_serial.bat" | ||
- name: Copy deps to bin dir | ||
working-directory: modflow6/bin | ||
shell: cmd | ||
run: | | ||
:: copy dependencies | ||
copy "C:\Windows\System32\ucrtbase.dll" . | ||
copy "C:\Windows\System32\msvcrt.dll" . | ||
copy "C:\Windows\System32\msvcp_win.dll" . | ||
copy "C:\Windows\SYSTEM32\MSVCP140.dll" . | ||
copy "C:\Windows\SYSTEM32\VCRUNTIME140.dll" . | ||
copy "C:\Windows\SYSTEM32\VCRUNTIME140_1.dll" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\libifcoremd.dll" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\libmmd.dll" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\bin\mkl_sequential.2.dll" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\bin\mkl_core.2.dll" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\bin\mkl_def.2.dll" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\bin\mkl_avx2.2.dll" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\bin\mkl_avx512.2.dll" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\bin\mkl_mc3.2.dll" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mpi\latest\bin\impi.dll" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mpi\latest\opt\mpi\libfabric\bin\libfabric.dll" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mpi\latest\bin\mpiexec.exe" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mpi\latest\bin\hydra_bstrap_proxy.exe" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mpi\latest\bin\hydra_pmi_proxy.exe" . | ||
copy "C:\Program Files (x86)\Intel\oneAPI\mpi\latest\bin\hydra_service.exe" . | ||
copy "%GITHUB_WORKSPACE%\petsc\arch-mswin-c-opt\lib\libpetsc.dll" . | ||
copy "%GITHUB_WORKSPACE%\netcdf\netCDF4.9.2-NC4-64\bin\hdf5.dll" . | ||
copy "%GITHUB_WORKSPACE%\netcdf\netCDF4.9.2-NC4-64\bin\hdf5_hl.dll" . | ||
copy "%GITHUB_WORKSPACE%\netcdf\netCDF4.9.2-NC4-64\bin\libcurl.dll" . | ||
copy "%GITHUB_WORKSPACE%\netcdf\netCDF4.9.2-NC4-64\bin\netcdf.dll" . | ||
copy "%GITHUB_WORKSPACE%\netcdf\netCDF4.9.2-NC4-64\bin\zlib1.dll" . | ||
copy "%GITHUB_WORKSPACE%\netcdf\netcdf-fortran-4.6.1\build\fortran\netcdff.dll" . | ||
- name: Upload binaries | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bin-ext | ||
path: modflow6/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
set FC=ifort | ||
cd "%GITHUB_WORKSPACE%\modflow6" | ||
pixi run setup -Dextended=true builddir | ||
pixi run build builddir | ||
pixi run test builddir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
cd "%GITHUB_WORKSPACE%\netcdf\netcdf-fortran-4.6.1_build\build" | ||
cd "%GITHUB_WORKSPACE%\netcdf\netcdf-fortran-4.6.1\build" | ||
|
||
:: BUILD/INSTALL STATIC LIBS | ||
cmake --fresh -G Ninja -DCMAKE_Fortran_COMPILER="C:/Program Files (x86)/Intel/oneAPI/compiler/latest/bin/ifort.exe" -DNETCDF_C_LIBRARY="%GITHUB_WORKSPACE%/netcdf/netCDF4.9.2-NC4-64/lib/netcdf.lib" -DNETCDF_C_INCLUDE_DIR="%GITHUB_WORKSPACE%/netcdf/netCDF4.9.2-NC4-64/include" -DBUILD_SHARED_LIBS=0 -DCMAKE_INSTALL_PREFIX="%GITHUB_WORKSPACE%/netcdf/netcdf-fortran-4.6.1_build/build" ../netcdf-fortran-4.6.1 | ||
:: build/install static libs | ||
cmake --fresh -G Ninja -DCMAKE_Fortran_COMPILER="C:/Program Files (x86)/Intel/oneAPI/compiler/latest/bin/ifort.exe" -DNETCDF_C_LIBRARY="%GITHUB_WORKSPACE%/netcdf/netCDF4.9.2-NC4-64/lib/netcdf.lib" -DNETCDF_C_INCLUDE_DIR="%GITHUB_WORKSPACE%/netcdf/netCDF4.9.2-NC4-64/include" -DBUILD_SHARED_LIBS=0 -DCMAKE_INSTALL_PREFIX="%GITHUB_WORKSPACE%/netcdf/netcdf-fortran-4.6.1/build" ../netcdf-fortran-4.6.1 | ||
cmake --build . | ||
cmake –install . | ||
|
||
:: BUILD/INSTALL SHARED LIBS | ||
cmake --fresh -G Ninja -DCMAKE_Fortran_COMPILER="C:/Program Files (x86)/Intel/oneAPI/compiler/latest/bin/ifort.exe" -DNETCDF_C_LIBRARY="%GITHUB_WORKSPACE%/netcdf/netCDF4.9.2-NC4-64/lib/netcdf.lib" -DNETCDF_C_INCLUDE_DIR="%GITHUB_WORKSPACE%/netcdf/netCDF4.9.2-NC4-64/include" -DBUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_PREFIX="%GITHUB_WORKSPACE%/netcdf/netcdf-fortran-4.6.1_build/build" ../netcdf-fortran-4.6.1 | ||
:: build/install shared libs | ||
cmake --fresh -G Ninja -DCMAKE_Fortran_COMPILER="C:/Program Files (x86)/Intel/oneAPI/compiler/latest/bin/ifort.exe" -DNETCDF_C_LIBRARY="%GITHUB_WORKSPACE%/netcdf/netCDF4.9.2-NC4-64/lib/netcdf.lib" -DNETCDF_C_INCLUDE_DIR="%GITHUB_WORKSPACE%/netcdf/netCDF4.9.2-NC4-64/include" -DBUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_PREFIX="%GITHUB_WORKSPACE%/netcdf/netcdf-fortran-4.6.1/build" ../netcdf-fortran-4.6.1 | ||
cmake --build . | ||
cmake –install . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters