Skip to content

new(ci): add a sample kmod source to test that we are able to build a kmod after kernel headers are installed #3

new(ci): add a sample kmod source to test that we are able to build a kmod after kernel headers are installed

new(ci): add a sample kmod source to test that we are able to build a kmod after kernel headers are installed #3

Workflow file for this run

name: Test composite action
on:
pull_request:
paths:
- 'action.yml'
workflow_dispatch:
jobs:
test-composite-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test action
uses: ./
with:
cache: 'true'
release: '6.0.0'
- name: Check that a fake module can be built
working-directory: .github/workflows
run: make
test-composite-action-cached:
runs-on: ubuntu-latest
needs: test-composite-action
steps:
- uses: actions/checkout@v4
- name: Test that kernel sources are cached
uses: actions/cache@v4
with:
path: |
/usr/src/linux
key: ${{ runner.os }}-${{ runner.arch }}-6.0.0
- name: Fully restore through action
uses: ./
with:
cache: 'true'
release: '6.0.0'
- name: Check that a fake module can be built again
working-directory: .github/workflows
run: make