Merge pull request #1168 from sm00th/actions

github actions: unit tests
This commit is contained in:
Joe Lawrence 2021-03-24 13:47:19 -04:00 committed by GitHub
commit 509bfab25f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

26
.github/workflows/unit.yml vendored Normal file
View File

@ -0,0 +1,26 @@
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:
- uses: actions/checkout@v2
- 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