2020-02-12 11:41:15 +00:00
|
|
|
name: build and unit tests
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
cflags: [ "", "-O2", "-O3" ]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
CFLAGS: ${{ matrix.cflags }}
|
|
|
|
steps:
|
2022-12-01 17:08:29 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-02-12 11:41:15 +00:00
|
|
|
- name: dependencies
|
|
|
|
run: sudo apt-get install -y libelf-dev linux-headers-$(uname -r) shellcheck elfutils
|
|
|
|
- name: make
|
|
|
|
run: make
|
|
|
|
- name: submodule update
|
|
|
|
run: git submodule update --init
|
|
|
|
- name: make unit
|
|
|
|
run: make unit
|
|
|
|
- name: make check
|
|
|
|
run: make check
|
|
|
|
- name: install
|
|
|
|
run: sudo make install
|