mirror of
https://github.com/lindbergh-loader/lindbergh-loader.git
synced 2026-09-27 17:28:01 +03:00
73 lines
1.6 KiB
YAML
73 lines
1.6 KiB
YAML
name: 🐧 Linux AppImage
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
linux-appimage:
|
|
name: "Build"
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Download version.h artifact
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: version-file
|
|
path: src/lindbergh/
|
|
|
|
- name: Cache APT packages
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: /var/cache/apt/archives
|
|
key: ${{ runner.os }}-apt-${{ hashFiles('**/install-packages.sh') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-apt-
|
|
|
|
- name: Install Packages
|
|
run: scripts/appimage/install-packages.sh
|
|
|
|
- name: Pack ID Libs
|
|
run: scripts/appimage/id-libs.sh
|
|
|
|
- name: Install Kisak
|
|
run: scripts/appimage/install-kisak.sh
|
|
|
|
- name: Build Deps
|
|
run: scripts/appimage/build-deps.sh
|
|
|
|
- name: Pack Libs
|
|
run: scripts/appimage/pack-libs.sh
|
|
|
|
- name: Compile Build
|
|
shell: bash
|
|
run: |
|
|
make
|
|
scripts/appimage/make-appimage.sh
|
|
|
|
- name: Compress build directory
|
|
run: tar -czvf build.tar.gz -C ./build .
|
|
|
|
- name: Upload build.tar.gz artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: "linux-build"
|
|
path: "build.tar.gz"
|
|
|
|
- name: Upload AppImage
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: "linux-appimage"
|
|
path: "lindbergh-loader.AppImage"
|
|
|
|
- name: Upload SDL3 and FAudio
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: SDL3-FAudio-ID
|
|
path: |
|
|
libs/libs.tar
|
|
libs/includes.tar
|
|
libs/lib32ID.tar
|