Debian Codegraph @

.github/workflows/package-linux.yml

raw
1 name: Package - Linux
2 on:
3 workflow_dispatch:
4 workflow_call:
5
6 jobs:
7 package:
8 name: GCC 12
9 runs-on: ubuntu-22.04
10 steps:
11 - name: Clone Repository
12 uses: actions/checkout@v4
13
14 - name: Install Dependencies
15 run: >
16 sudo apt-get update
17
18 sudo apt install -y
19 gcc-12 g++-12
20 python3
21 scons
22 libsdl1.2-dev
23 libsdl-image1.2-dev
24 libsdl-mixer1.2-dev
25 libphysfs-dev
26 libpng-dev
27
28 - name: Collect architecture
29 id: architecture
30 run: |
31 printf 'uname_m=%s\n' "$(uname -m)" >> "$GITHUB_OUTPUT"
32
33 - name: Configure and Build
34 run: scons -j`nproc`
35 env:
36 CXX: g++-12
37
38 - name: Install AppImage Requirements
39 run: sudo apt-get install -y libfuse2 wget curl
40
41 - name: Package
42 run: ./contrib/packaging/linux/build_package.sh
43 env:
44 rebirth_uname_m: ${{ steps.architecture.outputs.uname_m }}
45
46 - name: Upload Artifact
47 uses: actions/upload-artifact@v4
48 with:
49 name: "DXX-Rebirth-Linux-AppImage-${{ steps.architecture.outputs.uname_m }}"
50 path: 'D*X-Rebirth.AppImage'