From a66eb54e04ea8eaa6221a7607e6c9bf705524beb Mon Sep 17 00:00:00 2001 From: Jonas Ott Date: Fri, 24 Mar 2023 23:21:08 +0100 Subject: [PATCH] GitHub Actions: MSYS2 workflow --- .github/workflows/cmake-msys2.yml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/cmake-msys2.yml diff --git a/.github/workflows/cmake-msys2.yml b/.github/workflows/cmake-msys2.yml new file mode 100644 index 000000000..37b3be713 --- /dev/null +++ b/.github/workflows/cmake-msys2.yml @@ -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