From 958a8d7900cf2156392d86d93121255e175441f7 Mon Sep 17 00:00:00 2001 From: reionwong Date: Wed, 1 Sep 2021 22:04:57 +0800 Subject: [PATCH] Add github ci --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ src/application.cpp | 5 +++++ src/qml/SideBar.qml | 9 +++++++++ src/qml/main.qml | 2 +- 4 files changed, 54 insertions(+), 1 deletion(-) 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..a71b4bd --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + debian: + name: Debian + runs-on: ubuntu-latest + container: docker.io/library/debian:sid + steps: + - name: Checkout Source + uses: actions/checkout@v2 + - name: Update repository + run: apt-get 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++ + - name: Install build dependencies + run: mk-build-deps -i -t "apt-get --yes" -r + - name: Build Package + run: dpkg-buildpackage -b -uc -us -j$(nproc) + + ubuntu: + name: Ubuntu + 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) diff --git a/src/application.cpp b/src/application.cpp index 779653f..8e490ca 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -75,7 +75,12 @@ Application::Application(int &argc, char **argv) qmlRegisterType