Skip to content

fix osd recording flicker #338

fix osd recording flicker

fix osd recording flicker #338

Workflow file for this run

name: Build
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
name: Build for ${{ matrix.debian_codename }}
strategy:
matrix:
debian_codename:
- bullseye
- bookworm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Cache debian
id: cache-debian
uses: actions/cache@v5
with:
path: |
.apt_cache
debian-*-generic-arm64.tar
key: ${{ matrix.debian_codename }}-build-files
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build
run: |
set -x
make qemu_build DEBIAN_CODENAME=${{ matrix.debian_codename }}
sudo mv pixelpilot ${{ matrix.debian_codename }}_pixelpilot
sudo rm -r .apt_cache/archives/{lock,partial}
- name: Upload binary
uses: actions/upload-artifact@v6
with:
name: ${{ matrix.debian_codename }}-bin
path: |
${{ matrix.debian_codename }}_pixelpilot
build_deb:
name: Build DEB pkg for ${{ matrix.debian_codename }}
strategy:
matrix:
debian_codename:
- bullseye
- bookworm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Cache debian
id: cache-debian
uses: actions/cache@v5
with:
path: |
.apt_cache
debian-*-generic-arm64.tar
key: ${{ matrix.debian_codename }}-build_deb-files
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build deb package
run: |
set -x
make qemu_build_deb DEBIAN_CODENAME=${{ matrix.debian_codename }}
for f in `ls pixelpilot-rk*_arm64.deb`; do
mv $f "${{ matrix.debian_codename }}_${f}";
done
sudo rm -r .apt_cache/archives/{lock,partial}
- name: Upload binary
uses: actions/upload-artifact@v6
with:
name: ${{ matrix.debian_codename }}-deb
path: |
${{ matrix.debian_codename }}_pixelpilot-rk_*_arm64.deb
${{ matrix.debian_codename }}_pixelpilot-rk-dbgsym_*_arm64.deb
build_sbc:
name: Build for sbc-groundstations (${{ matrix.platform }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- runcam_wifilink
- emax_wyvern-link
- openipc_bonnet
- radxa_zero3
steps:
- name: Checkout PixelPilot_rk
uses: actions/checkout@v6
with:
submodules: recursive
path: PixelPilot_rk
- name: Checkout sbc-groundstations
uses: actions/checkout@v6
with:
repository: OpenIPC/sbc-groundstations
path: sbc-groundstations
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install -y cpio rsync bc qemu-user-static binfmt-support
- name: Prepare workspace
run: |
sudo mkdir -p /mnt/workspace
sudo chown $USER:$USER /mnt/workspace
rsync -a sbc-groundstations/ /mnt/workspace/
echo "CACHE_DATE=$(date +%m)" >> $GITHUB_ENV
- name: Cache ccache
uses: actions/cache@v5
with:
path: /tmp/ccache
key: ${{ matrix.platform }}-ccache-${{ env.CACHE_DATE }}
restore-keys: |
${{ matrix.platform }}-ccache-
- name: Build
working-directory: /mnt/workspace
run: |
set -x
mkdir -p /tmp/ccache
export PIXELPILOT_OVERRIDE_SRCDIR=$GITHUB_WORKSPACE/PixelPilot_rk
export BR2_CCACHE_DIR=/tmp/ccache
DEFCONFIG=${{ matrix.platform }}_defconfig bash build.sh pixelpilot-rebuild
- name: Extract pixelpilot binary
run: |
cp /mnt/workspace/output/${{ matrix.platform }}_defconfig/target/usr/bin/pixelpilot \
sbc_${{ matrix.platform }}_pixelpilot
- name: Upload binary
uses: actions/upload-artifact@v6
with:
name: sbc-${{ matrix.platform }}-bin
path: sbc_${{ matrix.platform }}_pixelpilot
test:
name: Test (${{ matrix.debian_codename }})
runs-on: ubuntu-latest
strategy:
matrix:
debian_codename:
- bookworm
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Cache debian
id: cache-debian
uses: actions/cache@v5
with:
path: |
.apt_cache
debian-*-generic-arm64.tar
key: ${{ matrix.debian_codename }}-test-files
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: QEMU Test
run: |
make qemu_test DEBIAN_CODENAME=${{ matrix.debian_codename }}
sudo rm -r .apt_cache/archives/{lock,partial}
release:
name: Release Artifacts
runs-on: ubuntu-latest
needs:
- build
- build_deb
- build_sbc
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Download Binaries
uses: actions/download-artifact@v8
with:
run-id: ${{ github.run_id }} # Download all artifacts
merge-multiple: true
- name: Versioned release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
bullseye_pixelpilot
bullseye_pixelpilot-rk_*_arm64.deb
bullseye_pixelpilot-rk-dbgsym_*_arm64.deb
bookworm_pixelpilot
bookworm_pixelpilot-rk_*_arm64.deb
bookworm_pixelpilot-rk-dbgsym_*_arm64.deb
sbc_*_pixelpilot
config_osd.json
pixelpilot.yaml
gsmenu.sh
- name: Upload latest
if: github.event_name != 'pull_request'
uses: softprops/action-gh-release@v2
with:
tag_name: latest
files: |
bullseye_pixelpilot
bullseye_pixelpilot-rk_*_arm64.deb
bullseye_pixelpilot-rk-dbgsym_*_arm64.deb
bookworm_pixelpilot
bookworm_pixelpilot-rk_*_arm64.deb
bookworm_pixelpilot-rk-dbgsym_*_arm64.deb
sbc_*_pixelpilot
config_osd.json
pixelpilot.yaml
gsmenu.sh