Skip to content
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

added CI for MinGW #536

Draft
wants to merge 5 commits into
base: develop
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
52 changes: 52 additions & 0 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,58 @@ jobs:
env:
METACALL_BUILD_OPTIONS: ${{ matrix.options.build }} tests

windows-mingw-test:
name: Windows MinGW Test
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
sys: [mingw32, mingw64, ucrt64, clang64]

defaults:
run:
shell: msys2 {0}

steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: '${{ matrix.sys }} Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
update: true
install: >-
base-devel
git
cmake
make
pacboy: >-
toolchain:p
cmake:p
ninja:p

- name: Create build directory
run: mkdir build

- name: Configure with CMake
working-directory: ./build
run: |
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DOPTION_FORK_SAFE=OFF -DOPTION_BUILD_PLUGINS_BACKTRACE=OFF ..

- name: Build with CMake
working-directory: ./build
run: |
cmake --build .

- name: Run CTest
working-directory: ./build
run: |
ctest -j$(getconf _NPROCESSORS_ONLN) --timeout 5400 --output-on-failure -C ${{ matrix.build_type }}

windows-distributable:
name: Windows Distributable Dispatch
needs: windows-test
Expand Down
Loading