Create build.yml

This commit is contained in:
Reion Wong 2021-08-30 23:19:22 +08:00 committed by GitHub
parent b71654d154
commit 6bc8fb4680
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

30
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,30 @@
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
run: mkdir build; cd build; cmake .. ; make -j$(nproc);
- name: Build Package
run: dpkg-buildpackage -b -uc -us -j$(nproc)