Skip to content

Commit 1304ded

Browse files
committed
.github: build kernel ahead of time to see how long it takes
build kernel ahead of time to see how long it takes. Signed-off-by: Marc Herbert <[email protected]>
1 parent 0ba61b4 commit 1304ded

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/main.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,15 @@ jobs:
153153
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
154154
fi
155155
156-
- name: build
156+
# run_qemu.sh already does this but separating it lets us see how long it takes.
157+
# Also makes the logs much shorter and easier to scroll.
158+
- name: build kernel
159+
run: |
160+
ccache --show-stats
161+
cd kernel
162+
PATH=/usr/lib/ccache:"$PATH" make -j $(nproc)
163+
164+
- name: run_qemu.sh
157165
run: |
158166
set -x
159167
mkosi --version

0 commit comments

Comments
 (0)