From c65c016e9c2ad2a316039b0e76be5a0bf9709b79 Mon Sep 17 00:00:00 2001 From: Matvey Soloviev Date: Thu, 24 Dec 2020 23:51:23 -0500 Subject: [PATCH] Set up github workflow for deb package build --- .github/workflows/package-deb.yml | 29 +++++++++++++++++++++++++++++ debian/control | 6 +++--- debian/rules | 10 +++++----- debian/source/options | 1 + 4 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/package-deb.yml create mode 100644 debian/source/options diff --git a/.github/workflows/package-deb.yml b/.github/workflows/package-deb.yml new file mode 100644 index 0000000..6cead4d --- /dev/null +++ b/.github/workflows/package-deb.yml @@ -0,0 +1,29 @@ +name: deb package + +on: + push: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@v2 + - name: inspect shady library + run: apt-cache showpkg libgcc-s1 + - name: removing gcc10 + run: sudo apt remove libgcc-10-dev + - name: setting the dependencies up + run: sudo apt install libfontconfig1-dev zlib1g-dev libjsoncpp-dev libgtksourceviewmm-3.0-dev libgtkmm-3.0-dev cmake debhelper=12.1.1ubuntu1~ubuntu18.04.1 dpkg-dev + - name: running debhelper + run: dpkg-buildpackage -b -uc + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest-deb" + prerelease: true + title: "Ubuntu 18.04 package for development version" + files: ../notekit_0.1-1_amd64.deb + diff --git a/debian/control b/debian/control index b6eae50..42aaac6 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: notekit Section: text Priority: optional Maintainer: Matvey Soloviev -Build-Depends: cmake, debhelper-compat (= 13) +Build-Depends: cmake, libfontconfig1-dev, zlib1g-dev, libjsoncpp-dev, libgtksourceviewmm-3.0-dev, libgtkmm-3.0-dev, debhelper-compat (= 12) Standards-Version: 4.5.1 Homepage: https://github.com/blackhole89/notekit #Vcs-Browser: https://salsa.debian.org/debian/notekit @@ -12,5 +12,5 @@ Rules-Requires-Root: no Package: notekit Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} -Description: - +Description: Markdown note-taking app with tablet support and LaTeX math + diff --git a/debian/rules b/debian/rules index 59ea751..9b807a2 100755 --- a/debian/rules +++ b/debian/rules @@ -15,11 +15,11 @@ %: + rm -f Makefile + ./install-clatexmath.sh dh $@ -# dh_make generated override targets -# This is example for Cmake (See https://bugs.debian.org/641051 ) -#override_dh_auto_configure: -# dh_auto_configure -- \ -# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) +override_dh_auto_configure: + dh_auto_configure -- \ + -DHAVE_CLATEXMATH=ON diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..d340130 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^(cLaTeXMath/|data/|cmake-build-Release|config|sourceview|.git)"