pull/16/head
Yinan Qin 3 years ago
parent 7a1f2fa580
commit 419eb94e14

@ -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

Loading…
Cancel
Save