mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-23 23:10:53 +07:00
ci: Add github workflow
Add a minimal github workflow to test kmod. This can be incremented in future to test more distros, compilers and libc. Link: https://lore.kernel.org/r/20240709135007.104325-2-lucas.de.marchi@gmail.com Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
This commit is contained in:
parent
8434a0bd93
commit
a6f070b3e1
56
.github/workflows/main.yml
vendored
Normal file
56
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
name: Build and Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master, ci-test]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
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=$PWD/inst make install
|
||||
|
||||
- name: distcheck
|
||||
run: |
|
||||
cd build
|
||||
make distcheck
|
Loading…
Reference in New Issue
Block a user