mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
add Launchpad PPA build
Could it be this easy? There's no way it's this easy. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
243d6bfd2b
commit
41b5bbb226
4 changed files with 54 additions and 4 deletions
1
.github/workflows/fedora-copr-build.yml
vendored
1
.github/workflows/fedora-copr-build.yml
vendored
|
@ -3,7 +3,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- github-action-test
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
47
.github/workflows/ubuntu-launchpad-build.yml
vendored
Normal file
47
.github/workflows/ubuntu-launchpad-build.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
name: Ubuntu Launchpad Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- github-action-test
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push-to-ppa:
|
||||||
|
|
||||||
|
name: Submit build to Ubuntu Launchpad
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out sources
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Setup build dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y devscripts dput gpg debhelper qt5-qmake cmake
|
||||||
|
|
||||||
|
- name: Setup gpg key token for launchpad
|
||||||
|
env:
|
||||||
|
GPG_PRIVATE_KEY: ${{ secrets.PPA_SECRET_KEY }}
|
||||||
|
run: |
|
||||||
|
echo "$GPG_PRIVATE_KEY" > ~/.key
|
||||||
|
gpg --import ~/.key
|
||||||
|
|
||||||
|
- name: setup git
|
||||||
|
run: |
|
||||||
|
git config --global --add safe.directory /__w/subsurface/subsurface
|
||||||
|
git config --global --add safe.directory /__w/subsurface/subsurface/libdivecomputer
|
||||||
|
|
||||||
|
- name: Checkout googlemaps
|
||||||
|
run: |
|
||||||
|
cd ..
|
||||||
|
git clone https://github.com/subsurface/googlemaps
|
||||||
|
|
||||||
|
- name: run the launchpad make-package script
|
||||||
|
run: |
|
||||||
|
cd ..
|
||||||
|
bash -x subsurface/packaging/ubuntu/make-package.sh post
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
Source: subsurface
|
Source: subsurface
|
||||||
Section: utils
|
Section: utils
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Dirk Hohndel <dirk@hohndel.org>
|
Maintainer: Subsurface CI Bot <dirk@subsurface-divelog.org>
|
||||||
Build-Depends: asciidoc,
|
Build-Depends: asciidoc,
|
||||||
debhelper (>= 9),
|
debhelper (>= 9),
|
||||||
libgconf2-dev,
|
libgconf2-dev,
|
||||||
libtool,
|
libtool,
|
||||||
libxml2-dev,
|
libxml2-dev,
|
||||||
libxslt-dev,
|
libxslt-dev,
|
||||||
|
libgit2-dev,
|
||||||
libsoup2.4-dev,
|
libsoup2.4-dev,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
txt2html,
|
txt2html,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# it is included in our source tar file
|
# it is included in our source tar file
|
||||||
#
|
#
|
||||||
|
|
||||||
if [[ $(pwd | grep "subsurface$") || ! -d subsurface || ! -d subsurface/libdivecomputer ]] ; then
|
if [[ ! -d subsurface || ! -d subsurface/libdivecomputer ]] ; then
|
||||||
echo "Please start this script from the folder ABOVE the subsurface source directory"
|
echo "Please start this script from the folder ABOVE the subsurface source directory"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
@ -27,6 +27,9 @@ VERSION=$(echo $GITVERSION | sed -e 's/-/./')
|
||||||
GITDATE=$(cd subsurface ; git log -1 --format="%at" | xargs -I{} date -d @{} +%Y-%m-%d)
|
GITDATE=$(cd subsurface ; git log -1 --format="%at" | xargs -I{} date -d @{} +%Y-%m-%d)
|
||||||
LIBDCREVISION=$(cd subsurface/libdivecomputer ; git rev-parse --verify HEAD)
|
LIBDCREVISION=$(cd subsurface/libdivecomputer ; git rev-parse --verify HEAD)
|
||||||
|
|
||||||
|
export DEBSIGN_PROGRAM="gpg --passphrase-file passphrase_file.txt --batch --no-use-agent"
|
||||||
|
export DEBSIGN_KEYID="F58109E3"
|
||||||
|
|
||||||
if [[ "$GITVERSION" = "" ]] ; then
|
if [[ "$GITVERSION" = "" ]] ; then
|
||||||
SUFFIX=".release"
|
SUFFIX=".release"
|
||||||
else
|
else
|
||||||
|
@ -65,7 +68,7 @@ echo "preparing the debian directory"
|
||||||
|
|
||||||
# this uses my (Dirk's) email address by default... simply set that variable in your
|
# this uses my (Dirk's) email address by default... simply set that variable in your
|
||||||
# environment prior to starting the script
|
# environment prior to starting the script
|
||||||
test -z $DEBEMAIL && export DEBEMAIL=dirk@hohndel.org
|
test -z $DEBEMAIL && export DEBEMAIL=dirk@subsurface-divelog.org
|
||||||
|
|
||||||
# copy over the debian files and allow maintaining a release and daily changelog files
|
# copy over the debian files and allow maintaining a release and daily changelog files
|
||||||
rm -rf debian
|
rm -rf debian
|
||||||
|
|
Loading…
Reference in a new issue