CI: Use self-host-runner build kernel #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-kernel | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
KBUILD_BUILD_USER: deepin-kernel-sig | |
KBUILD_BUILD_HOST: deepin-kernel-builder | |
email: [email protected] | |
KDEB_COMPRESS: xz | |
KDEB_CHANGELOG_DIST: unstable | |
OUT_DIR: out | |
permissions: | |
pull-requests: read | |
jobs: | |
build-kernel: | |
runs-on: [self-hosted, linux] | |
steps: | |
- name: "Update APT sources" | |
run: | | |
sudo apt update | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
with: | |
# this might remove tools that are actually needed, | |
# if set to "true" but frees about 6 GB | |
tool-cache: true | |
# all of these default to true, but feel free to set to | |
# "false" if necessary for your workflow | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: true | |
docker-images: true | |
swap-storage: true | |
- uses: actions/checkout@v3 | |
- name: "Install Deps" | |
run: | | |
sudo apt install -y gdisk dosfstools g++ build-essential \ | |
libncurses-dev gawk flex bison openssl libssl-dev \ | |
dkms libelf-dev pahole libudev-dev libpci-dev libiberty-dev autoconf mkbootimg \ | |
fakeroot genext2fs genisoimage libconfuse-dev mtd-utils mtools squashfs-tools \ | |
device-tree-compiler rauc simg2img u-boot-tools swig ccache debhelper | |
git config --global user.email $email | |
git config --global user.name $KBUILD_BUILD_USER | |
- name: "Compile kernel" | |
run: | | |
# .config | |
make deepin_x86_desktop_defconfig | |
make -j$(nproc) |