kpatch/.github/workflows/unit.yml
Josh Poimboeuf 2c341722c3 github actions: fix warning with node 16
Attempt to fix the following warning:

  Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout@v2

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
2022-12-01 09:08:29 -08:00

27 lines
603 B
YAML

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@v3
- 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