build: Use meson #67
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: | |
push: | |
branches: | |
- master | |
- releases/* | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ubuntu-x86-64: | |
name: Ubuntu cross build (x86-64) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Remove mono runtime | |
run: sudo apt-get purge mono-runtime | |
- name: Install dependencies | |
run: >- | |
sudo apt-get install -y --no-install-recommends | |
mingw-w64-{x86-64-dev,tools} {gcc,g++,binutils}-mingw-w64-x86-64 | |
ninja-build python3-pip wine64 | |
- name: Install newest meson | |
run: >- | |
sudo pip3 install meson # --break-system-packages | |
- name: Run tests | |
run: >- | |
meson setup --cross-file meson.cross.x86_64-w64-mingw32 | |
-Denable-debug-checks=true build_ci | |
&& meson test -Cbuild_ci | |
msys2-ucrt64: | |
name: MSYS2 native build (x86-64) | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: UCRT64 | |
- name: Install dependencies | |
run: >- | |
pacman -S --noconfirm | |
mingw-w64-ucrt-x86_64-{{headers,crt,tools}-git,gcc,binutils,meson} | |
- name: Run tests | |
run: >- | |
meson setup -Denable-debug-checks=true build_ci | |
&& meson test -Cbuild_ci | |
msys2-mingw32: | |
name: MSYS2 native build (i686) | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW32 | |
- name: Install dependencies | |
run: >- | |
pacman -S --noconfirm | |
mingw-w64-i686-{{headers,crt,tools}-git,gcc,binutils,meson} | |
- name: Run tests | |
run: >- | |
meson setup -Denable-debug-checks=true build_ci | |
&& meson test -Cbuild_ci |