Skip to content

feat: add sudo

feat: add sudo #6

Workflow file for this run

name: Build kernel deb packages
on: push
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
- name: Build
run: bash build_action.sh
- name: Artifact
uses: actions/upload-artifact@v3
with:
name: artifact
path: ${{ github.workspace }}/artifact/