aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/debian.yml26
-rw-r--r--.github/workflows/ppa.yml34
2 files changed, 60 insertions, 0 deletions
diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml
new file mode 100644
index 0000000..edfff87
--- /dev/null
+++ b/.github/workflows/debian.yml
@@ -0,0 +1,26 @@
+name: Packages (Debian)
+
+on:
+ push:
+ pull_request:
+ workflow_dispatch:
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ name: Binary package
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Install dependencies
+ run: sudo make -C debian deps
+ - name: Build binary package
+ run: make -C debian bin/test
+ - name: Upload binary package
+ uses: actions/upload-artifact@v4
+ with:
+ name: build-area
+ path: debian/build-area/
+ if-no-files-found: error
diff --git a/.github/workflows/ppa.yml b/.github/workflows/ppa.yml
new file mode 100644
index 0000000..267a952
--- /dev/null
+++ b/.github/workflows/ppa.yml
@@ -0,0 +1,34 @@
+name: Publish (Launchpad)
+
+on:
+ push:
+ pull_request:
+ workflow_dispatch:
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ name: Upload to PPA
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Import GPG key
+ uses: crazy-max/ghaction-import-gpg@v6
+ with:
+ gpg_private_key: '${{ secrets.GPG_PRIVATE_KEY }}'
+ passphrase: '${{ secrets.GPG_PASSPHRASE }}'
+ - name: Install dependencies
+ run: sudo make -C debian deps
+ - name: Create cowbuilder image
+ run: sudo make -C debian dist/create
+ - name: Build binary package
+ run: make -C debian dist
+ - name: Clean the build area
+ run: make -C debian clean
+ - name: Build source package
+ run: make -C debian src
+ - name: Upload to PPA
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/debian/')
+ run: make -C debian upload