Skip to content

Commit 948c023

Browse files
committed
switch order
1 parent 578b256 commit 948c023

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build-check_x86_64.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ jobs:
1010
runs-on:
1111
labels: ubuntu-latest
1212
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+
1319
- name: Install rinse
1420
run: |
1521
sudo apt-get install rinse
@@ -21,26 +27,20 @@ jobs:
2127
--arch amd64 \
2228
--directory centos7-vault
2329
24-
- name: Point yum to vault
30+
- name: Point yum to vault (in chroot)
2531
run: |
2632
sudo sed -e '/mirrorlist=.*/d' \
2733
-e 's/#baseurl=/baseurl=/' \
2834
-e "s/\$releasever/7.9.2009/g" \
2935
-e "s/mirror.centos.org/dl.rockylinux.org\/vault/g" \
3036
-i centos7-vault/etc/yum.repos.d/CentOS-Base.repo
3137
32-
- name: Checkout code
33-
uses: actions/checkout@v4
34-
with:
35-
ref: "${{ github.event.pull_request.head.sha }}"
36-
fetch-depth: 0
37-
38-
- name: Install tools and Libraries
38+
- name: Install tools and Libraries (in chroot)
3939
run: |
4040
sudo chroot centos7-vault yum groupinstall 'Development Tools' -y
4141
sudo chroot centos7-vault yum install bc dwarves git glibc-devel hostname kernel-devel mpfr openssl openssl-devel elfutils-libelf-devel -y
4242
43-
- name: Build the Kernel
43+
- name: Build the Kernel (in chroot)
4444
run: |
4545
sudo mv kernel-src-tree centos7-vault
4646
sudo chroot centos7-vault sh -c "cd kernel-src-tree && cp configs/kernel-3.10.0-x86_64.config .config"

0 commit comments

Comments
 (0)