Upload debug symbols for Linux artifact #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: linux | |
on: | |
push: | |
paths: | |
- 'src/**' | |
- 'data-*/**' | |
- 'packaging/**' | |
- 'CMakeLists.txt' | |
- '.github/workflows/linux.yml' | |
pull_request: | |
paths: | |
- 'src/**' | |
- 'data-*/**' | |
- 'packaging/**' | |
- 'CMakeLists.txt' | |
- '.github/workflows/linux.yml' | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
container: | |
image: debian:bullseye | |
env: { LANG: "C.UTF-8" } | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install deps | |
run: | | |
apt-get update | |
apt-get install -y g++ libgtk-3-dev libgl-dev libglew-dev libcurl4-openssl-dev libpng-dev libjpeg-dev libfreetype6-dev cmake ninja-build desktop-file-utils ca-certificates wget file --no-install-recommends | |
wget https://github.com/principia-game/linux-deps/releases/download/latest/deps.tar.gz -O linux-deps.tar.gz | |
tar -xaf linux-deps.tar.gz -C / | |
- name: Build | |
run: | | |
mkdir build; cd build | |
../packaging/build-appimage.sh | |
- name: Upload output as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Principia-x86_64.AppImage | |
path: build/Principia-x86_64.AppImage | |
- name: Upload debug symbols as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-appimage-dbgsym | |
path: build/principia.debug |