Skip to content

fixed macOS build and added macOS and MSYS2 actions #3

fixed macOS build and added macOS and MSYS2 actions

fixed macOS build and added macOS and MSYS2 actions #3

Workflow file for this run

name: windows
on:
push:
branches: [ "develop", "release/*" ]
pull_request:
branches: [ "develop", "release/*" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
msys2-root: ${{ runner.workspace }}/msys2
cache: true
update: true
- name: Install required packages
shell: msys2 {0}
run: |
pacman -Syu --noconfirm mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-qt6-base mingw-w64-ucrt-x86_64-qt6-tools mingw-w64-ucrt-x86_64-qt6-svg mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-python bison flex dos2unix mingw-w64-ucrt-x86_64-gperf -v
- name: Build CMake project
run: |
cmake.exe -B ${{github.workspace}}/build -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
cmake.exe --build ${{github.workspace}}/build -j`nproc` --config ${{env.BUILD_TYPE}}