mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-12 22:00:35 +08:00
5b209cf5f4
This makes it so its usable in ubuntu 22.04 & 24.04, otherwise we start running into dependency issues in the system for example: ``` /tmp/.mount_PX4_AuYR3Xk1/usr/bin/px4: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /tmp/.mount_PX4_AuYR3Xk1/usr/bin/px4) /tmp/.mount_PX4_AuYR3Xk1/usr/bin/px4: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /tmp/.mount_PX4_AuYR3Xk1/usr/bin/px4) ``` Signed-off-by: Ramon Roche <mrpollo@gmail.com>
40 lines
852 B
YAML
40 lines
852 B
YAML
name: Build PX4 SITL AppImage
|
||
|
||
on:
|
||
pull_request:
|
||
branches:
|
||
- main
|
||
|
||
permissions:
|
||
contents: read
|
||
actions: write
|
||
|
||
jobs:
|
||
build-appimage:
|
||
name: "Create px4_sitl AppImage"
|
||
runs-on: ubuntu-22.04
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
with:
|
||
fetch-depth: 0
|
||
submodules: recursive
|
||
|
||
- name: Git ownership workaround
|
||
run: git config --system --add safe.directory '*'
|
||
|
||
- name: Install Dependencies
|
||
run: ./Tools/setup.sh
|
||
|
||
- name: Build PX4 SITL and AppImage
|
||
env:
|
||
# avoid FUSE by extracting the AppImage in‐place
|
||
APPIMAGE_EXTRACT_AND_RUN: "1"
|
||
run: |
|
||
make appimage
|
||
|
||
- name: Upload AppImage artifact
|
||
uses: actions/upload-artifact@v4
|
||
with:
|
||
name: px4-sitl-appimage
|
||
path: build/*.AppImage
|