Update CI platforms and actions #1167
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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-20.04", "ubuntu-22.04"] | |
env: | |
- FAULTS: conservative | |
- FAULTS: | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt install -y libelf-dev ruby build-essential linux-headers-$(uname -r) | |
- name: Build | |
env: | |
FAULTS: ${{ matrix.env.FAULTS }} | |
run: make |