diff --git a/.github/workflows/building-deb-base.yml b/.github/workflows/building-deb-base.yml index 488df5c..60f82a9 100755 --- a/.github/workflows/building-deb-base.yml +++ b/.github/workflows/building-deb-base.yml @@ -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