Skip to content

Commit

Permalink
GitHub Actions: MSYS2 workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-ott committed Mar 24, 2023
1 parent 2cee8bf commit a66eb54
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cmake-msys2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake-MSYS2

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
BUILD_TYPE: Release

jobs:
msys2-ucrt64:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
pacboy: >-
cmake:p
gcc:p
glib2:p
libxml2:p
- name: Configure CMake
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTS=ON
- name: Build
run: cmake --build build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure

0 comments on commit a66eb54

Please sign in to comment.