fix: failed to build deb package

This commit is contained in:
msojocs 2022-04-30 23:15:01 +08:00
parent 64a6a2097e
commit 474efb2863

View File

@ -155,53 +155,6 @@ jobs:
name: wechat-devtools-${{ matrix.ARCH }}.build
path: tmp/build
# build-deb:
# name: Build Deb Package
# needs:
# - build-src
# runs-on: ubuntu-18.04
# strategy:
# matrix:
# ARCH: ['x86_64']
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
# steps:
# - uses: actions/checkout@v2
# - name: Download artifacts
# uses: actions/download-artifact@v2
# - name: Generate TAG
# id: Tag
# run: |
# tag='continuous'
# name='Continuous Build'
# if [ 'true' == ${{ startsWith(github.ref, 'refs/tags/') }} ];then
# tag='${{ github.ref_name }}'
# name='${{ github.ref_name }}'
# fi
# echo "tag result: $tag - $name"
# echo "::set-output name=tag::$tag"
# echo "::set-output name=name::$name"
# - name: Build Deb Package
# run: |
# export BUILD_VERSION=${{ steps.tag.outputs.tag }}
# ls -l
# mkdir -p tmp/build
# tools/build-prepare.sh
# tools/build-deb.sh ${{ steps.tag.outputs.tag }}
# export NO_WINE=true
# tools/build-prepare.sh
# tools/build-deb.sh ${{ steps.tag.outputs.tag }}
# - name: Upload artifact
# uses: actions/upload-artifact@v2.3.1
# with:
# # Artifact name
# name: wechat-devtools-${{ matrix.ARCH }}.build
# path: tmp/build
build-deb:
name: Build DEB Package
needs:
@ -236,9 +189,13 @@ jobs:
echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
- name: Prepare
run: |
sudo apt-get install -y build-essential fakeroot devscripts debhelper # debmake lintian pbuilder
- name: Build Deb Package
run: |
sudo apt-get install -y build-essential fakeroot devscripts git git-buildpackage debhelper debmake lintian pbuilder
export BUILD_VERSION=${{ steps.tag.outputs.tag }}
ls -l
mkdir -p tmp/build