Skip to content

Commit

Permalink
Added windows (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
makepath-alex committed Nov 26, 2024
1 parent 1e70437 commit e69853c
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-13] #, windows-latest]
os: [ubuntu-22.04, macos-13, windows-2022]
toolchain:
- {compiler: gcc, version: 10}
- {compiler: gcc, version: 11}
Expand All @@ -35,6 +35,9 @@ jobs:
FAILURE_THRESHOLD: 7.e-4
runs-on: ${{ matrix.os }}
steps:
#
# Set up Fortran compilers
#
- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
Expand All @@ -45,24 +48,13 @@ jobs:
#
- name: Relax failure threshold for single precision
if: matrix.fpmodel == 'SP'
run: echo "FAILURE_THRESHOLD=3.5e-1" >> $GITHUB_ENV
run: echo "FAILURE_THRESHOLD=3.5e-1" >> $GITHUB_ENV
#
# Check out repository under $GITHUB_WORKSPACE
#
- name: Check out code
uses: actions/checkout@v4
#
# Install dependencies (OS-specific)
#
- name: Install dependencies
run: |
if [[ "${{ matrix.os }}" == "ubuntu-22.04" ]]; then
sudo apt-get update
sudo apt-get install -y libnetcdff-dev
elif [[ "${{ matrix.os }}" == "macos-13" ]]; then
brew install netcdf-fortran
fi
#
# Cache Conda packages
#
- name: Cache Conda packages
Expand All @@ -82,13 +74,19 @@ jobs:
python-version: 3.11
auto-activate-base: false
# Use the cache properly:
use-only-tar-bz2: true
use-only-tar-bz2: false
#
# Install dependencies (OS-specific)
#
- name: Install dependencies
run: |
conda install -c conda-forge netcdf-fortran -y
#
# Build libraries, examples, and tests
#
- name: Build libraries and tests
run: |
${{ env.FC }} --version
echo "${{ env.FC }}" >> $GITHUB_PATH
cmake -S . -B build \
-DCMAKE_Fortran_COMPILER="${{ env.FC }}" \
-DCMAKE_Fortran_FLAGS="$FCFLAGS" \
Expand Down

0 comments on commit e69853c

Please sign in to comment.