Reopen #95 (#96) #1166
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt install -y cppcheck clang-format | |
- name: Lint | |
run: | | |
make CLANG_FORMAT=clang-format fmt && git diff --exit-code | |
cppcheck --error-exitcode=1 src/ | |
build: | |
strategy: | |
matrix: | |
platform: ["ubuntu-18.04", "ubuntu-20.04"] | |
env: | |
- FAULTS: conservative | |
- FAULTS: | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: "2.7" | |
- name: Install dependencies | |
run: sudo apt install -y ruby build-essential linux-headers-$(uname -r) | |
- name: Build | |
env: | |
FAULTS: ${{ matrix.env.FAULTS }} | |
run: make |