1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build and test repo
runs-on: ubuntu-latest
strategy:
matrix:
include:
- cc: gcc-8
cxx: g++-8
- cc: clang
cxx: clang++
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
steps:
- run: sudo apt-get update
- name: Install dependencies
run: >
sudo apt-get install
pkg-config
libsystemd-dev
libjsoncpp-dev
googletest
meson
g++-8
- name: Checkout code
uses: actions/checkout@v2
- run: meson build/
- run: ninja -C build/
- run: ninja -C build/ test
|