diff --git a/.github/workflows/windows-latest-mingw.yml b/.github/workflows/windows-latest-mingw.yml index beb55d1efe..52cacd8504 100644 --- a/.github/workflows/windows-latest-mingw.yml +++ b/.github/workflows/windows-latest-mingw.yml @@ -14,27 +14,46 @@ env: BUILD_TYPE: Release jobs: - buil_and_test: + 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. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. - # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -G "MinGW Makefiles" -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 + # 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 with the given configuration - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + # Build your program + run: cmake --build ${GITHUB_WORKSPACE}/build - name: Test working-directory: ${{github.workspace}}/build - # Execute tests defined by the CMake configuration. - # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail - run: ctest -C ${{env.BUILD_TYPE}} + # Execute tests + run: ctest