Skip to content

CI (mingw): Install and build with SuiteSparse library #1808

CI (mingw): Install and build with SuiteSparse library

CI (mingw): Install and build with SuiteSparse library #1808

name: Build and Test - Windows/mingw (short)
on:
pull_request:
merge_group:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build_and_test:
runs-on: windows-latest
defaults:
run:
# Use MSYS2 as default shell
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
release: false
install: >-
base-devel
mingw-w64-x86_64-cmake
mingw-w64-x86_64-cc
mingw-w64-x86_64-openblas
mingw-w64-x86_64-suitesparse
- name: Configure CMake
# Configure CMake in a 'build' subdirectory
run: |
cmake \
-B ${GITHUB_WORKSPACE}/build \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DSUNDIALS_BUILD_WITH_PROFILING=ON \
-DSUNDIALS_LOGGING_LEVEL=2 \
-DSUNDIALS_TEST_UNITTESTS=OFF \
-DEXAMPLES_ENABLE_CXX=ON \
-DENABLE_KLU=ON
- name: Build
# Build your program
run: cmake --build ${GITHUB_WORKSPACE}/build
- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests
run: ctest