-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (65 loc) · 1.62 KB
/
Copy pathdeb-package.yml
File metadata and controls
76 lines (65 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build Debian Package
on:
push:
branches:
- master
#- develop
tags:
- "v*"
pull_request:
branches:
- master
jobs:
build-deb:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0 # fetch full history including tags
- name: Update build information
run: |
bin/setbuild.sh
cat src/build.h
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
fakeroot \
lintian \
zlib1g-dev \
libsdl3-dev \
libsdl3-mixer-dev \
libxmp-dev \
pkg-config \
licensecheck
- name: Build mapzutil
run: |
echo "Preparing mapzutil"
cd itools/mapzutil
mkdir -p build
python3 bin/gen.py
make
cp build/mapzutil ../../bin
- name: Strip private maps
run: |
echo "Strip private maps"
bin/mapzutil -s data/levels.mapz
- name: Create .deb package with CPack
run: |
./packages/bin/make-deb.sh
- name: Upload built package
uses: actions/upload-artifact@v4
with:
name: debian-package
path: build/*.deb
retention-days: 7
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/*.deb