From 474efb28633fa2ecbb16d2718fdcb952f1bbca70 Mon Sep 17 00:00:00 2001 From: msojocs Date: Sat, 30 Apr 2022 23:15:01 +0800 Subject: [PATCH] fix: failed to build deb package --- .github/workflows/release.yml | 53 ++++------------------------------- 1 file changed, 5 insertions(+), 48 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c9d1e5..4f1a8f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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