-
Notifications
You must be signed in to change notification settings - Fork 12
122 lines (108 loc) · 3.12 KB
/
modules.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Build and install modules
# https://github.com/ossf/scorecard/blob/9ff40de429d0c7710076070387c8755494a9f187/docs/checks.md#token-permissions
permissions:
contents: read
on:
push:
branches:
- 'intel/**'
tags:
- 'intel-*'
paths:
- '.github/workflows/modules.yml'
- 'Makefile'
- 'build/**'
- 'drivers/**'
- 'include/**'
pull_request:
branches:
- 'intel/**'
paths:
- '.github/workflows/modules.yml'
- 'Makefile'
- 'build/**'
- 'drivers/**'
- 'include/**'
schedule:
- cron: "32 18 * * 1"
workflow_dispatch:
jobs:
modules:
permissions:
packages: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- vendor: centos
release: '8.2.2004'
pkg: rpm
- vendor: centos
release: '8.3.2011'
pkg: rpm
- vendor: fedora
release: '39'
pkg: rpm
- vendor: fedora
release: '40'
pkg: rpm
- vendor: fedora
release: 'rawhide'
pkg: rpm
- vendor: rockylinux
release: '8'
pkg: rpm
- vendor: rockylinux
release: '8.4'
pkg: rpm
- vendor: rockylinux
release: '8.6'
pkg: rpm
- vendor: rockylinux
release: '8.8'
pkg: rpm
- vendor: rockylinux
release: '9'
pkg: rpm
- vendor: rockylinux
release: '9.0'
pkg: rpm
- vendor: rockylinux
release: '9.2'
pkg: rpm
- vendor: debian
release: '12'
pkg: deb
- vendor: ubuntu
release: '20.04'
pkg: deb
- vendor: ubuntu
release: '22.04'
pkg: deb
container:
image: ghcr.io/ofs/linux-dfl-backport/${{ matrix.vendor }}-kernel-devel:${{ matrix.release }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# Makefile derives the package version from git describe, which will
# fall back to the commit hash if no tagged commits are available.
# Since Debian package versions must start with a number, this will
# fail the build when the hash does not start with a decimal digit.
fetch-depth: 0
fetch-tags: true
# The owner of the workspace directory may not match the owner of the
# git process in the container, which triggers git's ownership detection.
- name: Work around git's ownership detection
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Build modules
run: make -k KERNEL="$(basename /lib/modules/*)"
- name: Install modules
run: make KERNEL="$(basename /lib/modules/*)" install
- name: Upload modules
uses: actions/upload-artifact@v4
with:
name: linux-dfl-backport-modules-${{ matrix.vendor }}-${{ matrix.release }}-${{ github.run_id }}
path: /lib/modules/*/extra/
if-no-files-found: error