Skip to content

added MinGW configuration in CMakePreset and example pipeline #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,42 @@ jobs:
shell: bash
run: cmake --build --preset build-unixlike-${{ matrix.compiler.preset }}-${{ matrix.buildtype }}

windows-mingw:
name: ${{ matrix.os }}, MinGW ${{ matrix.buildtype }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # 'false' means Don't stop matrix workflows even if some matrix entry fails.
matrix:
os: [windows-2022]
buildtype: [debug]
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: make
- name: Install conan
run: |
pacman --noconfirm -S mingw-w64-x86_64-ninja
pacman --noconfirm -S mingw-w64-x86_64-gcc
pacman --noconfirm -S mingw-w64-x86_64-cmake
pacman --noconfirm -S mingw-w64-x86_64-python
pacman --noconfirm -S mingw-w64-x86_64-python-pip
python3 -m pip install --upgrade pip setuptools
python3 -m pip install conan==1.58

- name: Configure CMake
run: cmake --preset win32-gcc-x64-mingw-${{ matrix.buildtype }}

- name: Build
run: cmake --build --preset build-win32-gcc-x64-mingw-${{ matrix.buildtype }}

- name: Test
run: ctest --preset test-win32-gcc-x64-mingw-${{ matrix.buildtype }}

linux-qt:
name: ${{ matrix.os }}, QT ${{ matrix.compiler.name }}, C++${{ matrix.cxx }}
runs-on: ${{ matrix.os }}
Expand Down