aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/cmake-multi-platform.yml43
1 files changed, 40 insertions, 3 deletions
diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml
index 61ed38b..b5094e7 100644
--- a/.github/workflows/cmake-multi-platform.yml
+++ b/.github/workflows/cmake-multi-platform.yml
@@ -7,14 +7,51 @@ on:
branches: [ "master" ]
jobs:
- build:
+ build-windows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, macos-latest]
+ os: [windows-latest]
+ build_type: [RelWithDebInfo]
+ sys:
+ - mingw64
+
+ name: ${{ matrix.sys }}
+ defaults:
+ run:
+ shell: msys2 {0}
+ steps:
+ - name: 'Checkout'
+ uses: actions/checkout@v4
+
+ - name: 'Setup MSYS2 ${{ matrix.sys }}'
+ uses: msys2/setup-msys2@v2
+ with:
+ msystem: ${{matrix.sys}}
+ install: >-
+ git
+ make
+ pacboy: >-
+ toolchain:p
+ cmake:p
+ libxml2:p
+ libcurl:p
+ - name: 'Build'
+ run: |
+ cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
+ cmake --build build
+
+ build-nix:
+ runs-on: ${{ matrix.os }}
+
+ strategy:
+ fail-fast: false
+
+ matrix:
+ os: [ubuntu-latest, macos-latest, windows-latest]
build_type: [RelWithDebInfo]
c_compiler: [gcc, clang]
include:
@@ -29,7 +66,7 @@ jobs:
c_compiler: gcc
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Set reusable strings
id: strings