xanmod yml
This commit is contained in:
parent
ce457f2266
commit
ae67161de6
29
.github/workflows/build-xanmod-hwe0.yml
vendored
Normal file
29
.github/workflows/build-xanmod-hwe0.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Build HWE Xanmod kernel deb packages(0)
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 1 * * *'
|
||||||
|
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 0 1
|
29
.github/workflows/build-xanmod-hwe1.yml
vendored
Normal file
29
.github/workflows/build-xanmod-hwe1.yml
vendored
Normal 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
|
29
.github/workflows/build-xanmod-hwe2.yml
vendored
Normal file
29
.github/workflows/build-xanmod-hwe2.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Build HWE Xanmod kernel deb packages(2)
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 7 * * *'
|
||||||
|
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 2 1
|
29
.github/workflows/build-xanmod-hwe3.yml
vendored
Normal file
29
.github/workflows/build-xanmod-hwe3.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Build HWE Xanmod kernel deb packages(3)
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 10 * * *'
|
||||||
|
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 3 1
|
@ -11,7 +11,12 @@ python3 get-newest-version-xanmod.py $1
|
|||||||
VERSION=`cat /tmp/kernelversion.txt`
|
VERSION=`cat /tmp/kernelversion.txt`
|
||||||
URL=`cat /tmp/kernelurl.txt`
|
URL=`cat /tmp/kernelurl.txt`
|
||||||
MAINVERSION=`expr substr $VERSION 1 1`
|
MAINVERSION=`expr substr $VERSION 1 1`
|
||||||
curl https://github.com/gfdgd-xi/dclc-kernel/raw/main/$VERSION/index.html | grep 404
|
SHOWVERSION=$VERSION
|
||||||
|
# 使用 deepin hwe config编译
|
||||||
|
if [[ $2 == 1 ]]; then
|
||||||
|
SHOWVERSION=$VERSION-hwe
|
||||||
|
fi
|
||||||
|
curl https://github.com/gfdgd-xi/dclc-kernel/raw/main/$SHOWVERSION/index.html | grep 404
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
@ -28,7 +33,11 @@ tar -xvf "$VERSION".tar.bz2
|
|||||||
cd linux-"$VERSION"* || exit
|
cd linux-"$VERSION"* || exit
|
||||||
|
|
||||||
# copy config file
|
# copy config file
|
||||||
cp ../config .config
|
if [[ $2 == 1 ]]; then
|
||||||
|
cp ../config-6.1.11-amd64-desktop-hwe .config
|
||||||
|
else
|
||||||
|
cp ../config .config
|
||||||
|
fi
|
||||||
#
|
#
|
||||||
# disable DEBUG_INFO to speedup build
|
# disable DEBUG_INFO to speedup build
|
||||||
scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
|
scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
|
||||||
@ -47,20 +56,79 @@ scripts/config --set-val DEBUG_INFO_NONE y
|
|||||||
# build deb packages
|
# build deb packages
|
||||||
CPU_CORES=$(($(grep -c processor < /proc/cpuinfo)*2))
|
CPU_CORES=$(($(grep -c processor < /proc/cpuinfo)*2))
|
||||||
sudo make bindeb-pkg -j"$CPU_CORES"
|
sudo make bindeb-pkg -j"$CPU_CORES"
|
||||||
|
if [[ $2 == 1 ]]; then
|
||||||
# move deb packages to artifact dir
|
# move deb packages to artifact dir
|
||||||
cd ..
|
cd ..
|
||||||
mkdir "artifact"
|
mkdir "artifact"
|
||||||
#cp ./*.deb artifact/
|
#cp ./*.deb artifact/
|
||||||
git clone https://gfdgd-xi:$PASSWORD@github.com/gfdgd-xi/dclc-kernel
|
git clone https://gfdgd-xi:$PASSWORD@github.com/gfdgd-xi/dclc-kernel
|
||||||
#cd dclc-kernel
|
#cd dclc-kernel
|
||||||
mkdir dclc-kernel/$VERSION
|
mkdir dclc-kernel/$SHOWVERSION
|
||||||
rm -rfv *dbg*.deb
|
rm -rfv *dbg*.deb
|
||||||
mv ./*.deb dclc-kernel/$VERSION
|
mv ./*.deb dclc-kernel/$SHOWVERSION
|
||||||
cd dclc-kernel/$VERSION
|
cd dclc-kernel/$SHOWVERSION
|
||||||
cd ..
|
cd ..
|
||||||
cd head
|
cd head
|
||||||
cat > deb/DEBIAN/control <<EOF
|
cat > deb/DEBIAN/control <<EOF
|
||||||
|
Package: linux-kernel-dclc-gfdgdxi-xanmod-hwe
|
||||||
|
Version: $VERSION
|
||||||
|
Maintainer: gfdgd xi <3025613752@qq.com>
|
||||||
|
Homepage: https://github.com/gfdgd-xi/dclc-kernel
|
||||||
|
Architecture: amd64
|
||||||
|
Severity: serious
|
||||||
|
Certainty: possible
|
||||||
|
Check: binaries
|
||||||
|
Type: binary, udeb
|
||||||
|
Priority: optional
|
||||||
|
Depends: linux-headers-$VERSION-amd64-desktop-hwe, linux-image-$VERSION-amd64-desktop-hwe
|
||||||
|
Section: utils
|
||||||
|
Installed-Size: 0
|
||||||
|
Description: 内核(虚包)
|
||||||
|
EOF
|
||||||
|
if [[ ! -d deb-$MAINVERSION-xanmod ]]; then
|
||||||
|
mkdir -pv deb-$MAINVERSION-xanmod/DEBIAN
|
||||||
|
fi
|
||||||
|
cat > deb-$MAINVERSION-xanmod/DEBIAN/control <<EOF
|
||||||
|
Package: linux-kernel-dclc-gfdgdxi-$MAINVERSION-xanmod-hwe
|
||||||
|
Version: $VERSION
|
||||||
|
Maintainer: gfdgd xi <3025613752@qq.com>
|
||||||
|
Homepage: https://github.com/gfdgd-xi/dclc-kernel
|
||||||
|
Architecture: amd64
|
||||||
|
Severity: serious
|
||||||
|
Certainty: possible
|
||||||
|
Check: binaries
|
||||||
|
Type: binary, udeb
|
||||||
|
Priority: optional
|
||||||
|
Depends: linux-headers-$VERSION-amd64-desktop-hwe, linux-image-$VERSION-amd64-desktop-hwe
|
||||||
|
Section: utils
|
||||||
|
Installed-Size: 0
|
||||||
|
Description: 内核(虚包)
|
||||||
|
EOF
|
||||||
|
dpkg -b deb linux-kernel-dclc-gfdgdxi-xanmod-hwe_${VERSION}_amd64.deb
|
||||||
|
dpkg -b deb-$MAINVERSION-xanmod linux-kernel-dclc-gfdgdxi-xanmod-$MAINVERSION-hwe_${VERSION}_amd64.deb
|
||||||
|
cd ..
|
||||||
|
bash ./repack-zstd --scan .
|
||||||
|
./build.py
|
||||||
|
git add .
|
||||||
|
git pull
|
||||||
|
git config --global user.email 3025613752@qq.com
|
||||||
|
git config --global user.name gfdgd-xi
|
||||||
|
git commit -m 提交$VERSION
|
||||||
|
git push
|
||||||
|
else
|
||||||
|
# move deb packages to artifact dir
|
||||||
|
cd ..
|
||||||
|
mkdir "artifact"
|
||||||
|
#cp ./*.deb artifact/
|
||||||
|
git clone https://gfdgd-xi:$PASSWORD@github.com/gfdgd-xi/dclc-kernel
|
||||||
|
#cd dclc-kernel
|
||||||
|
mkdir dclc-kernel/$VERSION
|
||||||
|
rm -rfv *dbg*.deb
|
||||||
|
mv ./*.deb dclc-kernel/$VERSION
|
||||||
|
cd dclc-kernel/$VERSION
|
||||||
|
cd ..
|
||||||
|
cd head
|
||||||
|
cat > deb/DEBIAN/control <<EOF
|
||||||
Package: linux-kernel-dclc-gfdgdxi-xanmod
|
Package: linux-kernel-dclc-gfdgdxi-xanmod
|
||||||
Version: $VERSION
|
Version: $VERSION
|
||||||
Maintainer: gfdgd xi <3025613752@qq.com>
|
Maintainer: gfdgd xi <3025613752@qq.com>
|
||||||
@ -76,10 +144,10 @@ Section: utils
|
|||||||
Installed-Size: 0
|
Installed-Size: 0
|
||||||
Description: 内核(虚包)
|
Description: 内核(虚包)
|
||||||
EOF
|
EOF
|
||||||
if [[ ! -d deb-$MAINVERSION-xanmod ]]; then
|
if [[ ! -d deb-$MAINVERSION-xanmod ]]; then
|
||||||
mkdir -pv deb-$MAINVERSION-xanmod/DEBIAN
|
mkdir -pv deb-$MAINVERSION-xanmod/DEBIAN
|
||||||
fi
|
fi
|
||||||
cat > deb-$MAINVERSION-xanmod/DEBIAN/control <<EOF
|
cat > deb-$MAINVERSION-xanmod/DEBIAN/control <<EOF
|
||||||
Package: linux-kernel-dclc-gfdgdxi-$MAINVERSION-xanmod
|
Package: linux-kernel-dclc-gfdgdxi-$MAINVERSION-xanmod
|
||||||
Version: $VERSION
|
Version: $VERSION
|
||||||
Maintainer: gfdgd xi <3025613752@qq.com>
|
Maintainer: gfdgd xi <3025613752@qq.com>
|
||||||
@ -95,14 +163,15 @@ Section: utils
|
|||||||
Installed-Size: 0
|
Installed-Size: 0
|
||||||
Description: 内核(虚包)
|
Description: 内核(虚包)
|
||||||
EOF
|
EOF
|
||||||
dpkg -b deb linux-kernel-dclc-gfdgdxi-xanmod_${VERSION}_amd64.deb
|
dpkg -b deb linux-kernel-dclc-gfdgdxi-xanmod_${VERSION}_amd64.deb
|
||||||
dpkg -b deb-$MAINVERSION-xanmod linux-kernel-dclc-gfdgdxi-xanmod-$MAINVERSION_${VERSION}_amd64.deb
|
dpkg -b deb-$MAINVERSION-xanmod linux-kernel-dclc-gfdgdxi-xanmod-$MAINVERSION_${VERSION}_amd64.deb
|
||||||
cd ..
|
cd ..
|
||||||
bash ./repack-zstd --scan .
|
bash ./repack-zstd --scan .
|
||||||
./build.py
|
./build.py
|
||||||
git add .
|
git add .
|
||||||
git pull
|
git pull
|
||||||
git config --global user.email 3025613752@qq.com
|
git config --global user.email 3025613752@qq.com
|
||||||
git config --global user.name gfdgd-xi
|
git config --global user.name gfdgd-xi
|
||||||
git commit -m 提交$VERSION
|
git commit -m 提交$VERSION
|
||||||
git push
|
git push
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user