diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-05-20 11:42:39 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-05-20 11:42:39 -0400 |
commit | 0daf95eb7359d0f7a71ec5765a414c0c2eb3cfa5 (patch) | |
tree | d02e4d301558d2bb60cf6e1a6fef7eeb281d7d22 | |
parent | aa34a922b1ed0722480d193c5302e2490d04e803 (diff) | |
download | ohmycal-0daf95eb7359d0f7a71ec5765a414c0c2eb3cfa5.tar.gz |
Windows CI
-rw-r--r-- | .github/workflows/cmake-multi-platform.yml | 43 |
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 |