更新
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
name: Build kernel deb packages
|
name: Build kernel deb packages
|
||||||
on: push
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -22,9 +23,3 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bash build_action.sh
|
run: bash build_action.sh
|
||||||
|
|
||||||
- name: Artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: artifact
|
|
||||||
path: ${{ github.workspace }}/artifact/
|
|
||||||
|
|||||||
+13
-3
@@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERSION=$(grep 'Kernel Configuration' < config | awk '{print $3}')
|
VERSION=$(grep 'Kernel Configuration' < config | awk '{print $3}')
|
||||||
|
|
||||||
# add deb-src to sources.list
|
# add deb-src to sources.list
|
||||||
sed -i "/deb-src/s/# //g" /etc/apt/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
|
cd "${GITHUB_WORKSPACE}" || exit
|
||||||
|
|
||||||
# download kernel source
|
# 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
|
tar -xf linux-"$VERSION".tar.gz
|
||||||
cd linux-"$VERSION" || exit
|
cd linux-"$VERSION" || exit
|
||||||
|
|
||||||
@@ -35,4 +34,15 @@ sudo make bindeb-pkg -j"$CPU_CORES"
|
|||||||
# move deb packages to artifact dir
|
# move deb packages to artifact dir
|
||||||
cd ..
|
cd ..
|
||||||
mkdir "artifact"
|
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
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# Automatically generated file; DO NOT EDIT.
|
# 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_VERSION_TEXT="gcc (Uos 8.3.0.5-1+dde) 8.3.0"
|
||||||
CONFIG_CC_IS_GCC=y
|
CONFIG_CC_IS_GCC=y
|
||||||
|
|||||||
Reference in New Issue
Block a user