-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (88 loc) · 2.81 KB
/
Copy pathappImage-build.yml
File metadata and controls
101 lines (88 loc) · 2.81 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: C++ AppImage Build (Linux - g++)
on:
push:
branches:
- master
#- develop
paths:
- "**.cpp"
- "**.h"
- "Makefile"
- "packages/Makefile"
- ".github/workflows/appImage-build.yml"
- "packages/data/**"
tags:
- "v*"
pull_request:
branches:
- master
jobs:
build-appimage:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
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 Build Dependencies
run: |
sudo apt update
sudo apt install -y build-essential cmake
sudo apt install -y libsdl2-dev libsdl2-mixer-dev zlib1g-dev
sudo apt install -y python3
sudo apt install -y libxmp-dev
sudo apt install -y libmpg123-dev libogg-dev libvorbis-dev libflac-dev libopusfile-dev
sudo apt install -y wget zip
- 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: Compile C++ Application
run: |
python3 bin/gen.py sdl3 -s
mkdir -p build
make build_libs
make
# env: # Optional: set environment variables if your Makefile needs them
# BUILD_TYPE: Release
- name: Verify Executable Exists (Optional)
run: |
ls -l build/cs3-runtime
file build/cs3-runtime
ldd build/cs3-runtime
- name: Download linuxdeploy and plugins
run: |
wget -q -N https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage -O packages/bin/linuxdeploy-x86_64.AppImage
chmod +x packages/bin/linuxdeploy-x86_64.AppImage
- name: Create AppDir and Collect Dependencies
# This step uses linuxdeploy to create the AppDir, which is the core of the AppImage
# and bundles the executable and its runtime dependencies.
run: |
make -C packages
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
packages/*.AppImage
LICENSE
- name: Upload AppImage Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-AppImage
path: |
packages/Creepspread_III-x86_64.AppImage
retention-days: 7