diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e1c40e..202b6cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,7 +160,6 @@ jobs: # not needed atm, but just in case any future tests require this - name: Set SETVARS_COMPLETED - if: matrix.setvars != 'true' shell: bash run: echo "SETVARS_COMPLETED=1" >> $GITHUB_ENV diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index ab2a302..59795ea 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -15,8 +15,8 @@ on: schedule: - cron: '0 6 * * *' # run at 6 AM UTC every day jobs: - test_modflow: - name: Test modflow6 integration + test_modflow_meson: + name: Build modflow6 with meson runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -132,6 +132,37 @@ jobs: meson compile -v -C builddir meson install -C builddir + test_modflow_msvs: + name: Build modflow6 with MSVS + runs-on: windows-2019 + env: + FC: ifort + steps: + + - name: Checkout modflow6 + uses: actions/checkout@v4 + + - uses: ilammy/msvc-dev-cmd@v1 + with: + vsversion: 2019 + + # - name: Prepare MSVC + # uses: bus1/cabuild/action/msdevshell@v1 + # with: + # architecture: x64 + + - name: Install ifort + uses: ./ + with: + vs2019: 'true' + + - name: Build modflow6 + run: devenv msvs/mf6.sln /Build + + - name: Show build log + shell: bash + run: cat "D:\a\modflow6\modflow6\msvs\UpgradeLog.htm" + test_pymake: name: Test pymake integration runs-on: ${{ matrix.os }} diff --git a/scripts/install_windows.bat b/scripts/install_windows.bat index a5d3de1..88791e0 100755 --- a/scripts/install_windows.bat +++ b/scripts/install_windows.bat @@ -1,9 +1,5 @@ curl.exe --output %TEMP%\webimage.exe --url %2 --retry 5 --retry-delay 5 start /b /wait %TEMP%\webimage.exe -s -x -f webimage_extracted --log extract.log del %TEMP%\webimage.exe -if "%3"=="" ( - webimage_extracted\bootstrapper.exe -s --action install --eula=accept -p=NEED_VS2017_INTEGRATION=%4 -p=NEED_VS2019_INTEGRATION=%5 -p=NEED_VS2022_INTEGRATION=%6 --log-dir=. --install-dir %1 -) else ( - webimage_extracted\bootstrapper.exe -s --action install --components=default:%3 --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=. --install-dir %1 -) +webimage_extracted\bootstrapper.exe -s --action install --components=default:%3 --eula=accept -p=NEED_VS2017_INTEGRATION=%4 -p=NEED_VS2019_INTEGRATION=%5 -p=NEED_VS2022_INTEGRATION=%6 --log-dir=. --install-dir %1 rd /s/q "webimage_extracted" \ No newline at end of file