2020-04-18 11:52:17 -06:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
compiler: [clang, gcc]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: '3.7'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip meson
|
|
|
|
sudo apt update -y
|
|
|
|
sudo env DEBIAN_FRONTEND=noninteractive apt install -y \
|
|
|
|
doxygen libxcb-xkb-dev valgrind ninja-build \
|
2020-07-22 17:37:15 -06:00
|
|
|
libwayland-dev wayland-protocols bison graphviz
|
2020-04-18 11:52:17 -06:00
|
|
|
- name: Setup
|
|
|
|
run: |
|
|
|
|
meson setup build
|
|
|
|
env:
|
|
|
|
CC: ${{ matrix.compiler }}
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
meson compile -C build
|
|
|
|
- name: Test
|
|
|
|
run:
|
2020-07-22 17:04:10 -06:00
|
|
|
meson test -C build --print-errorlogs --setup=valgrind --no-suite python-tests
|
2020-04-18 11:52:17 -06:00
|
|
|
|
|
|
|
macos:
|
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: '3.7'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip meson
|
2020-09-07 02:54:55 -06:00
|
|
|
brew install libxml2 doxygen bison ninja
|
2020-04-18 11:52:17 -06:00
|
|
|
brew link bison --force
|
|
|
|
env:
|
|
|
|
HOMEBREW_NO_AUTO_UPDATE: 1
|
|
|
|
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
|
|
|
- name: Setup
|
|
|
|
run: |
|
2020-09-07 02:54:55 -06:00
|
|
|
PATH="/usr/local/opt/bison/bin:${PATH}" meson setup -Denable-wayland=false -Denable-x11=false build
|
2020-04-18 11:52:17 -06:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
PATH="/usr/local/opt/bison/bin:${PATH}" meson compile -C build
|
|
|
|
- name: Test
|
|
|
|
run:
|
|
|
|
meson test -C build --print-errorlogs
|
|
|
|
|
|
|
|
windows:
|
|
|
|
runs-on: windows-2019
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: '3.7'
|
|
|
|
- name: Install dependencies
|
2020-08-31 06:23:23 -06:00
|
|
|
shell: powershell
|
2020-04-18 11:52:17 -06:00
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip meson
|
2020-08-31 06:23:23 -06:00
|
|
|
Invoke-WebRequest -Uri https://github.com/ninja-build/ninja/releases/download/v1.10.1/ninja-win.zip -OutFile ninja.zip
|
|
|
|
Invoke-WebRequest -Uri https://github.com/lexxmark/winflexbison/releases/download/v2.5.23/win_flex_bison-2.5.23.zip -OutFile win_flex_bison.zip
|
|
|
|
Expand-Archive -Path win_flex_bison.zip -DestinationPath bin
|
|
|
|
Expand-Archive -Path ninja.zip -DestinationPath bin
|
2020-11-18 16:08:47 -07:00
|
|
|
Write-Output ((Get-Location).ToString() + "./bin") | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
|
2020-04-18 11:52:17 -06:00
|
|
|
- name: Setup
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
|
2020-05-11 22:09:50 -06:00
|
|
|
meson setup -Denable-wayland=false -Denable-x11=false -Denable-docs=false -Denable-xkbregistry=false build
|
2020-04-18 11:52:17 -06:00
|
|
|
env:
|
|
|
|
CC: cl
|
|
|
|
- name: Build
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
|
|
|
|
meson compile -C build
|
|
|
|
- name: Test
|
|
|
|
run:
|
|
|
|
meson test -C build --print-errorlogs
|