From 1cd2e5f5d1a34fd9cf5a371c2eb91bda0c7b8d1d Mon Sep 17 00:00:00 2001 From: reionwong Date: Tue, 31 Aug 2021 17:17:07 +0800 Subject: [PATCH] Add github CI --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ debian/control | 28 ++++++++++++++------------ debian/copyright | 4 ++-- 3 files changed, 57 insertions(+), 14 deletions(-) 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/debian/control b/debian/control index 56e4b48..712d25a 100644 --- a/debian/control +++ b/debian/control @@ -5,23 +5,27 @@ Maintainer: CutefishOS Build-Depends: cmake, debhelper (>= 9), extra-cmake-modules, - libkf5networkmanagerqt-dev, - libkf5kio-dev, - libkf5screen-dev, - libkf5bluezqt-dev, - modemmanager-qt-dev, - libqt5sensors5-dev, qtbase5-dev, qtdeclarative5-dev, qtquickcontrols2-5-dev, qttools5-dev, - qttools5-dev-tools + qttools5-dev-tools, + libpam0g-dev, + libx11-dev Standards-Version: 4.5.0 -Homepage: https://github.com/cutefishos/libcutefish +Homepage: https://github.com/cutefishos/screenlocker Package: libcutefish Architecture: any -Depends: ${misc:Depends}, - ${shlibs:Depends}, - libkf5screen-bin -Description: CutefishOS Library +Depends: qml-module-qtquick-controls2, + qml-module-qtquick2, + qml-module-qtquick-layouts, + qml-module-qt-labs-platform, + qml-module-qt-labs-settings, + qml-module-qtqml, + qml-module-qtquick-window2, + qml-module-qtquick-shapes, + qml-module-qtquick-dialogs, + ${misc:Depends}, + ${shlibs:Depends} +Description: CutefishOS Screen Locker diff --git a/debian/copyright b/debian/copyright index 716fe64..84b74a4 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,3 +1,3 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: calamares -Source: +Upstream-Name: libcutefish +Source: https://github.com/cutefishos/libcutefish