mirror of
https://github.com/dynup/kpatch
synced 2025-02-10 05:56:52 +00:00
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>
27 lines
603 B
YAML
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
|