Skip to content

Commit 37be9fc

Browse files
committed
github actions: Switch to centos 7 container
For some reason creating a centos-7 chroot with rinse has stopped working. Switch to a centos-7 container, which actually brings this build check more in line with all of the other branches.
1 parent 8b93ba8 commit 37be9fc

File tree

1 file changed

+21
-29
lines changed

1 file changed

+21
-29
lines changed

.github/workflows/build-check_x86_64.yml

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,38 @@ jobs:
99
kernel-build-job:
1010
runs-on:
1111
labels: kernel-build
12+
container:
13+
image: centos:7
14+
options: --cpus 8
1215
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v4
15-
with:
16-
ref: "${{ github.event.pull_request.head.sha }}"
17-
fetch-depth: 0
18-
path: kernel-src-tree
19-
20-
- name: Install rinse
21-
run: |
22-
sudo apt-get install rinse
23-
24-
- name: Build centos7 chroot
25-
run: |
26-
sudo rinse --distribution centos-7 \
27-
--mirror http://dl.rockylinux.org/vault/centos/7/os/x86_64/Packages \
28-
--arch amd64 \
29-
--directory centos-7-chroot
30-
31-
- name: Point yum to vault (in chroot)
16+
- name: Point yum to vault
3217
run: |
3318
sudo sed -e '/mirrorlist=.*/d' \
3419
-e 's/#baseurl=/baseurl=/' \
3520
-e "s/\$releasever/7.9.2009/g" \
3621
-e "s/mirror.centos.org/dl.rockylinux.org\/vault/g" \
37-
-i centos-7-chroot/etc/yum.repos.d/CentOS-Base.repo
22+
-i /etc/yum.repos.d/CentOS-Base.repo
3823
3924
- name: Install tools and Libraries (in chroot)
4025
run: |
41-
sudo chroot centos-7-chroot yum groupinstall 'Development Tools' -y
42-
sudo chroot centos-7-chroot yum install bc dwarves git glibc-devel hostname kernel-devel mpfr openssl openssl-devel elfutils-libelf-devel -y
26+
yum groupinstall 'Development Tools' -y
27+
yum install bc dwarves git glibc-devel hostname kernel-devel mpfr openssl openssl-devel elfutils-libelf-devel -y
28+
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
with:
32+
ref: "${{ github.event.pull_request.head.sha }}"
33+
fetch-depth: 0
4334

4435
- name: Build the Kernel (in chroot)
4536
run: |
46-
sudo mv kernel-src-tree centos-7-chroot
47-
sudo chroot centos-7-chroot sh -c "cd kernel-src-tree && cp configs/kernel-3.10.0-x86_64.config .config"
48-
sudo chroot centos-7-chroot sh -c "cd kernel-src-tree && make olddefconfig"
49-
sudo chroot centos-7-chroot sh -c "cd kernel-src-tree && make -j$(nproc)"
37+
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
38+
cp configs/kernel-3.10.0-x86_64.config .config
39+
make olddefconfig
40+
make -j$(nproc)
41+
5042
- name: Check kabi
5143
run: |
52-
sudo chroot centos-7-chroot sh -c "git clone --branch c7 --single-branch https://git.centos.org/rpms/kernel.git kernel-dist-git"
53-
sudo chroot centos-7-chroot sh -c "cd kernel-dist-git && git reset --hard imports/c7/kernel-3.10.0-1160.119.1.el7"
54-
sudo chroot centos-7-chroot sh -c "./kernel-dist-git/SOURCES/check-kabi -k ./kernel-dist-git/SOURCES/Module.kabi_x86_64 -s ./kernel-src-tree/Module.symvers"
44+
git clone --branch c7 --single-branch https://git.centos.org/rpms/kernel.git kernel-dist-git
45+
git -C kernel-dist-git reset --hard imports/c7/kernel-3.10.0-1160.119.1.el7
46+
./kernel-dist-git/SOURCES/check-kabi -k ./kernel-dist-git/SOURCES/Module.kabi_x86_64 -s Module.symvers

0 commit comments

Comments
 (0)