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

ci(msvs): test msvs build #1357

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: python .github/common/fortran_format_check.py

build:
name: Build
name: Build (meson)
runs-on: ubuntu-22.04
defaults:
run:
Expand Down Expand Up @@ -76,6 +76,37 @@ jobs:

- name: Meson test
run: meson test --verbose --no-rebuild -C builddir

build_msvs:
name: Build (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: Setup Intel Fortran
uses: wpbonelli/install-intelfortran-action@vs-integration
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"

smoke_test:
name: Smoke test
Expand Down
2 changes: 1 addition & 1 deletion msvs/mf6core.vfproj
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
<File RelativePath="..\src\Model\ModelUtilities\Xt3dAlgorithm.f90"/>
<File RelativePath="..\src\Model\ModelUtilities\Xt3dInterface.f90"/></Filter>
<Filter Name="TransportModel">
<File RelativePath="..\src\Model\tsp1.f90"/></Filter>
<File RelativePath="..\src\Model\TransportModel\tsp1.f90"/></Filter>
<File RelativePath="..\src\Model\BaseModel.f90"/>
<File RelativePath="..\src\Model\ExplicitModel.f90"/>
<File RelativePath="..\src\Model\NumericalModel.f90"/>
Expand Down
Loading