From 419eb94e1459a8fca5675b38413f6255f6e49042 Mon Sep 17 00:00:00 2001 From: Yinan Qin <1522846127@qq.com> Date: Wed, 1 Feb 2023 21:04:49 +0800 Subject: [PATCH] v0.7 --- .github/workflows/build.yml | 43 ++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 97b01bb..95c16f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,23 +2,46 @@ name: Build on: push: - branches: [ main ] + branches: [ v0.7 ] pull_request: - branches: [ main ] + branches: [ v0.7 ] jobs: - debian: - name: Debian + Ubuntu: + name: Ubuntu latest build runs-on: ubuntu-latest - container: docker.io/library/debian:sid + permissions: write-all + steps: - name: Checkout Source - uses: actions/checkout@v2 + uses: actions/checkout@v3 + - name: Update repository - run: apt-get update -y + run: sudo apt update -y + - name: Install the basic dev packages - run: apt-get install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++ + + run: sudo apt install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++ + - name: Install build dependencies - run: mk-build-deps -i -t "apt-get --yes" -r + run: sudo mk-build-deps -i -t "apt-get --yes" -r + - name: Build Package - run: dpkg-buildpackage -b -uc -us -j$(nproc) + run: sudo dpkg-buildpackage -b -uc -us -nc -tc -j$(nproc) + + - name: Get current date + id: date + run: echo "::set-output name=today::$(date +'%Y-%m-%d-%s')" + + - name: Upload build + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "0.7" + prerelease: false + title: "Version 0.7 - ${{ steps.date.outputs.today }}" + files: | + ../**/*.deb + ../**/*.ddeb + ../**/*.buildinfo + ../**/*.changes