Add meson build system #2
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: Meson | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [ develop ] | |
paths: | |
- 'source/**/**' | |
- '**meson.build' | |
- '**/meson.yml' | |
pull_request: | |
branches: [ develop ] | |
paths: | |
- 'source/**/**' | |
- '**meson.build' | |
- '**/meson.yml' | |
jobs: | |
meson: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get dependencies | |
run: | | |
sudo mk/linux/setupBuildDeps.sh | |
sudo apt install -y meson | |
# Using pip is only required if a newer version of meson is required | |
# sudo apt-get install -y python3-pip python3-setuptools # required for pip | |
# sudo -H python3 -m pip install meson ninja | |
- name: Build | |
run: | | |
meson setup builddir | |
cd builddir | |
meson compile -v |