test github ci #1
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 deb packages | |
on: | |
push: | |
branches: [ linux-6.6.y ] | |
pull_request: | |
branches: [ linux-6.6.y ] | |
jobs: | |
build: | |
name: Build kernel | |
runs-on: ubuntu-latest | |
steps: | |
- name: Maximize build space | |
uses: easimon/maximize-build-space@master | |
with: | |
# 这个值是保留给系统的空间大小,之前设置太小,总会在安装依赖或者编译过程中报设备空间不足的错误而导致编译失败 | |
root-reserve-mb: 4096 | |
swap-size-mb: 512 | |
remove-dotnet: 'true' | |
remove-android: 'true' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: install dep | |
run: | | |
sudo apt update --fix-missing | |
sudo apt install build-essential ccache curl jq gpg python3-pyquery wget xz-utils make gcc\ | |
flex bison dpkg-dev bc rsync kmod cpio libssl-dev git lsb vim libelf-dev neofetch python3-pip python3-tk\ | |
debhelper phole\ | |
-y --fix-missing | |
- name: 配置内核 | |
working-directory: . # 使用当前工作目录,而不是下载上游代码 | |
run: make deepin_desktop_common_defconfig | |
- name: 编译内核 | |
working-directory: . | |
run: make bindeb-pkg -j$(nproc) V=sc | |
- name: Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifact | |
path: ${{ github.workspace }}/artifact/ |