xanmod yml

This commit is contained in:
2023-07-04 16:26:36 +08:00
parent ce457f2266
commit ae67161de6
5 changed files with 216 additions and 31 deletions

29
.github/workflows/build-xanmod-hwe1.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Build HWE Xanmod kernel deb packages(1)
on:
schedule:
- cron: '0 4 * * *'
workflow_dispatch:
jobs:
build:
name: Build kernel
runs-on: ubuntu-latest
steps:
# 由于默认的 Ubuntu 环境只有 17G 左右的剩余空间,所以我们需要先利用如下 action 对编译环境进行扩容
- 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
- name: Build
env:
PASSWORD: ${{ secrets.PASSWORD }}
run: bash build_action_xanmod.sh 1 1