From ea2902cfb734691a70594724b6719ba6427b1305 Mon Sep 17 00:00:00 2001 From: Reion Wong Date: Tue, 31 Aug 2021 01:08:55 +0800 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b3b5188 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Source + uses: actions/checkout@v2 + + - name: Update repository + run: sudo apt-get update -y + + - name: Install the basic dev packages + run: sudo apt-get install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++ + + - name: Install build dependencies + run: sudo mk-build-deps -i -t "apt-get --yes" -r + + - name: Build Package + run: dpkg-buildpackage -b -uc -us -j$(nproc)