Skip to content

Commit 5011cef

Browse files
committed
Add a GitHub workflow for building debs
1 parent 9615518 commit 5011cef

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/deb.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Debian/Ubuntu Package
2+
3+
on:
4+
push:
5+
branches: [develop, main, master]
6+
pull_request:
7+
branches: [develop, main, master]
8+
workflow_dispatch: # For manual triggering
9+
schedule:
10+
- cron: "3 14 15 * *" # 14:03 on the 15th of every month (UTC)
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
name: Build deb pkg
18+
steps:
19+
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
submodules: true
24+
path: repoexplorer
25+
26+
- name: Run script
27+
run: cd repoexplorer && sudo ./build-deb.sh
28+
29+
- name: Archive artifacts
30+
uses: actions/[email protected]
31+
with:
32+
name: repoexplorer-amd64-deb
33+
path: repoexplorer_*
34+
overwrite: true
35+
compression-level: 0

build-deb.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
export DEBIAN_FRONTEND=noninteractive
4+
5+
apt-get update
6+
apt-get install -y --no-install-recommends \
7+
devscripts fakeroot haskell-debian-utils \
8+
libwww-perl file git
9+
10+
git submodule update --init haskell-download-curl
11+
12+
cd haskell-download-curl
13+
origtargz -u
14+
apt-get-build-depends -y
15+
debuild -b -us -uc
16+
debuild -- clean
17+
cd ..
18+
19+
dpkg -i libghc-download-curl-dev_*.deb
20+
21+
apt-get-build-depends -y
22+
debuild -b -us -uc
23+
debuild -- clean

0 commit comments

Comments
 (0)