补充GXDE_CROSS_ARCH

Signed-off-by: gfdgd_xi <3025613752@qq.com>
This commit is contained in:
2025-08-23 18:15:38 +08:00
parent 8972507515
commit da2fc47dad
+13 -2
View File
@@ -47,6 +47,11 @@ on:
description: 'Is build with backport'
required: false
gxde-cross-arch:
type: string
description: 'Build deb to which arch'
required: false
display-name:
required: false
type: string
@@ -102,9 +107,15 @@ jobs:
run: |
gitPath=$(basename $GITHUB_REPOSITORY)
if [[ -f system-bottle/$gitPath/debian/control ]]; then
env gitPath=$gitPath bash .github/workflows/run-command-in-chroot.sh env GXDE_ARCH=${{ inputs.arch }} GXDE_CODENAME=${{ inputs.gxde-codename }} GO111MODULE=off dpkg-buildpackage -b
env gitPath=$gitPath bash .github/workflows/run-command-in-chroot.sh \
env GXDE_ARCH=${{ inputs.arch }} GXDE_CODENAME=${{ inputs.gxde-codename }} \
GXDE_ARCH=${{ inputs.arch }} GXDE_CROSS_ARCH=${{ inputs.gxde-cross-arch }} GO111MODULE=off \
dpkg-buildpackage -b
else
env gitPath=$gitPath bash .github/workflows/run-command-in-chroot.sh env GXDE_ARCH=${{ inputs.arch }} GXDE_CODENAME=${{ inputs.gxde-codename }} GO111MODULE=off bash build-deb.sh
env gitPath=$gitPath bash .github/workflows/run-command-in-chroot.sh \
env GXDE_ARCH=${{ inputs.arch }} GXDE_CODENAME=${{ inputs.gxde-codename }} \
GXDE_ARCH=${{ inputs.arch }} GXDE_CROSS_ARCH=${{ inputs.gxde-cross-arch }} GO111MODULE=off \
bash build-deb.sh
fi
cp $BOTTLEPATH/*.deb . -rv
sudo rename 's/\.deb$/_${{ inputs.gxde-codename }}.deb/' *.deb