Skip to content

Commit

Permalink
add Windows to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kafitzgerald committed Feb 2, 2024
1 parent a4c7797 commit 494366f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest", "macos-14" ]
os: [ "ubuntu-latest", "macos-latest", "macos-14", "windows-latest" ]
python-version: [ "3.9", "3.10", "3.11" ]

steps:
Expand All @@ -29,20 +29,13 @@ jobs:
uses: actions/checkout@v3
with:
token: ${{ github.token }}
- name: Conda setup (Linux)
- name: Conda setup
uses: conda-incubator/setup-miniconda@v2
if: matrix.os == 'ubuntu-latest'
if: matrix.os != 'macos-14'
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
environment-file: build_envs/Linux.yml
- name: Conda setup (macOS)
uses: conda-incubator/setup-miniconda@v2
if: matrix.os == 'macos-latest'
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
environment-file: build_envs/Darwin.yml
environment-file: build_envs/environment.yml
- name: Conda setup (macOS M1)
uses: conda-incubator/setup-miniconda@v2
if: matrix.os == 'macos-14'
Expand All @@ -52,10 +45,17 @@ jobs:
channels: conda-forge
environment-file: build_envs/environment.yml
- name: Build WRF-Python
if: matrix.os != 'windows-latest'
run: |
cd build_scripts
./gnu_omp.sh
cd ..
- name: Build WRF-Python (Windows)
if: matrix.os == 'windows-latest'
run: |
cd build_scripts
./win_msvc_mingw_omp.bat
cd ..
- name: Run tests
run: |
cd test/ci_tests
Expand Down

0 comments on commit 494366f

Please sign in to comment.