Skip to content

Commit

Permalink
build: Add github workflow for CI
Browse files Browse the repository at this point in the history
Add a minimal github workflow to test kmod.

Signed-off-by: Lucas De Marchi <[email protected]>
  • Loading branch information
lucasdemarchi committed Jul 9, 2024
1 parent fa715f8 commit 63b1d26
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Test

on:
push:
branches: [ci-test]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install --yes \
build-essential \
autoconf \
automake \
gtk-doc-tools \
libssl-dev \
liblzma-dev \
libssl-dev \
libtool \
libzstd-dev \
linux-headers-generic \
scdoc \
zstd \
- name: configure
run: |
mkdir build
cd build
../autogen.sh c
- name: build
run: |
cd build
make -j$(nproc)
- name: test
run: |
cd build
make -j$(nproc) check
- name: install
run: |
cd build
DESTDIR=./.inst make install

0 comments on commit 63b1d26

Please sign in to comment.