Skip to content

Add CI on Windows with Visual Studio and Mingw #8

Add CI on Windows with Visual Studio and Mingw

Add CI on Windows with Visual Studio and Mingw #8

name: CI with TFEL support on Ubuntu
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout TFEL
uses: actions/checkout@v7
with:
path: tfel
- name: Checkout MGIS
uses: actions/checkout@v7
with:
path: mgis
- name: Install TFEL
run: |
cmake ${{github.workspace}}/tfel \
-B ${{github.workspace}}/build-tfel \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install-tfel
cmake --build ${{github.workspace}}/build-tfel --target all -j $(nproc)
cmake --build ${{github.workspace}}/build-tfel --target install
- name: Configure
run: |
source ${{github.workspace}}/install-tfel/share/tfel/env/env.sh
cmake ${{github.workspace}}/build/mgis \
-B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=Release . \
-Denable-c-bindings=ON \
-Denable-fortran-bindings=ON \
-Denable-python-bindings=OFF \
-Denable-portable-build=ON \
-Denable-julia-bindings=OFF \
-DTFEL_DIR=${{github.workspace}}/install-tfel/share/tfel/cmake \
-Denable-parallel-stl-algorithms=OFF
- name: Compile
run: |
source ${{github.workspace}}/install-tfel/share/tfel/env/env.sh
cmake --build ${{github.workspace}}/build --target all -j $(nproc)
- name: Test
run: |
source ${{github.workspace}}/install-tfel/share/tfel/env/env.sh
cmake --build ${{github.workspace}}/build --target all -j $(nproc)