mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Build PX4 SITL AppImage
|
||
|
||
on:
|
||
pull_request:
|
||
branches:
|
||
- main
|
||
|
||
permissions:
|
||
contents: read
|
||
actions: write
|
||
|
||
jobs:
|
||
build-appimage:
|
||
name: "AppImage ${{ matrix.arch }}"
|
||
strategy:
|
||
fail-fast: false
|
||
matrix:
|
||
include:
|
||
- arch: amd64
|
||
runner: x64
|
||
- arch: arm64
|
||
runner: arm64
|
||
runs-on: [runs-on,"runner=4cpu-linux-${{ matrix.runner }}","image=ubuntu22-full-${{ matrix.runner }}","run-id=${{ github.run_id }}"]
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
with:
|
||
fetch-depth: 0
|
||
submodules: recursive
|
||
|
||
- name: Install Dependencies
|
||
run: ./Tools/setup/ubuntu.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-${{ matrix.arch }}
|
||
path: build/*.AppImage
|