project: Update for 1.0.15 merge. #12
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: Build with meson | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
compiler: [gcc] | |
python-version: [3.8] | |
include: | |
## test with MSVC | |
- os: windows-latest | |
compiler: msvc | |
python-version: 3.8 | |
msvc: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup MSVC | |
if: matrix.os == 'windows-latest' && matrix.msvc == true | |
uses: ilammy/msvc-dev-cmd@v1 | |
## Shared build steps | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up meson | |
run: | | |
python -m pip install --upgrade pip | |
pip install meson ninja | |
## TODO: fix c2man build | |
# - name: build c2man | |
# run: bash .ci/build-c2man.sh | |
- name: configure | |
run: meson build -Ddocs=false | |
- name: ninja build | |
run: ninja -C build | |
- name: ninja test | |
run: ninja -C build test | |
- name: 'Upload build logs' | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
path: build/meson-logs/* |