build: make appimage #10
This file contains hidden or 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: Build PX4 SITL AppImage | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
actions: write | |
jobs: | |
build-appimage: | |
runs-on: ubuntu-latest | |
container: | |
image: px4io/px4-dev:v1.16.0-rc1-258-g0369abd556 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Git ownership workaround | |
run: git config --system --add safe.directory '*' | |
- name: Install FUSE support | |
run: sudo apt-get update && sudo apt-get install -y libfuse2 fuse | |
- name: Install appimagetool | |
run: | | |
wget -O appimagetool-x86_64.AppImage \ | |
https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage | |
chmod +x appimagetool-x86_64.AppImage | |
sudo mv appimagetool-x86_64.AppImage /usr/local/bin/appimagetool | |
- 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 |