This commit is contained in:
gfdgd xi 2023-06-23 10:48:49 +08:00
parent 8e32f13d7a
commit 46bb3d3060
3 changed files with 16 additions and 11 deletions

View File

@ -1,5 +1,6 @@
name: Build kernel deb packages
on: push
on:
workflow_dispatch:
jobs:
build:
@ -22,9 +23,3 @@ jobs:
- name: Build
run: bash build_action.sh
- name: Artifact
uses: actions/upload-artifact@v2
with:
name: artifact
path: ${{ github.workspace }}/artifact/

View File

@ -1,7 +1,6 @@
#!/usr/bin/env bash
VERSION=$(grep 'Kernel Configuration' < config | awk '{print $3}')
# add deb-src to sources.list
sed -i "/deb-src/s/# //g" /etc/apt/sources.list
@ -14,7 +13,7 @@ sudo apt build-dep -y linux
cd "${GITHUB_WORKSPACE}" || exit
# download kernel source
wget http://www.kernel.org/pub/linux/kernel/v6.x/linux-6.3.8.tar.gz
wget http://www.kernel.org/pub/linux/kernel/v6.x/linux-$VERSION.tar.gz
tar -xf linux-"$VERSION".tar.gz
cd linux-"$VERSION" || exit
@ -35,4 +34,15 @@ sudo make bindeb-pkg -j"$CPU_CORES"
# move deb packages to artifact dir
cd ..
mkdir "artifact"
mv ./*.deb artifact/
#cp ./*.deb artifact/
git clone https://gfdgd-xi:$PASSWORD@github.com/gfdgd-xi/dclc-kernel
#cd dclc-kernel
mkdir dclc-kernel/$VERSION
mv */*.deb dclc-kernel/$VERSION
cd dclc-kernel/$VERSION
bash ./repack-zstd --scan .
git add .
git config --global user.email 3025613752@qq.com
git config --global user.name gfdgd-xi
git commit -m 提交$VERSION
git push

2
config
View File

@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.3.8 Kernel Configuration
# Linux/x86 6.3.9 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Uos 8.3.0.5-1+dde) 8.3.0"
CONFIG_CC_IS_GCC=y