Use github-action for CI
v2 cover Use github-action for CI
Besides being in kernel.org, kmod is also hosted in Github at https://github.com/kmod-project/kmod/. Let's use the quick integration with github-actions to test we don't keep breaking build/checks.
v2:
- Fix to distcheck has been applied already
- Squash distcheck addition since now it doesn't need to be in a separate patch
- Also run on pushes to master branch and on PRs
Lucas De Marchi (1):
ci: Add github workflow
.github/workflows/main.yml | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/main.yml
Signature · 1 line
2.45.2
PATCH v2 1/1 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.
--- .github/workflows/main.yml | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/main.yml
.github/workflows/main.yml new file +56 -0
@@ -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
Signature · 1 line
2.45.2
Lucas De Marchi
AppliedRe: [PATCH v2 1/1] ci: Add github workflow
Quoted 4 lines · Lucas De Marchi
Add a minimal github workflow to test kmod. This can be incremented in future to test more distros, compilers and libc.
Signed-off-by Lucas De Marchi <[email protected]>
applied,
Lucas De Marchi