* chores(flysky): separate AFHDS2A and AFHDS3 into 2 different module type This should allow to remove some of the hacks added earlier. * chore: Add some EL18 CI bits * fix(afhds): cmake defs * fix(ci): add el18 to commit-tests.sh * chore(cpn): separate AFHDS2A and AFHDS3 * chore(cpn): remove binary import of afhds and legacy fxFreq field for afhds3 * fix(cpn): limit available internal afhds protocols to those supported by hardware * chore(cpn): update Flysky int module test * fix(cpn): compile error * fix(cpn): afhds2a max channels * fix: TR_MODULE_PROTOCOLS * enh(cpn): more support for afhds2a and 3 * fix(cpn): rebase compile error * fix(cpn): bit indexes * fix(cpn): emi toString * fix(cpn): limit available internal afhds protocols to those supported by hardware * enh(cpn): add support for Flysky EL18 * fix(cpn): available protocols * fix(cpn): rebase moduledata * chore(cpn): add module fields to model print * Separate AFHDS2A and AFHDS3 UI settings. * Fix AFHDS3 conversion from old subtype value. Fix 'Channel Range' layout on portrait LCD. * Fix name. --------- Co-authored-by: Peter Feerick <peter.feerick@gmail.com> Co-authored-by: elecpower <neilh713@tpg.com.au> Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
143 lines
3.3 KiB
YAML
143 lines
3.3 KiB
YAML
---
|
|
name: Run tests and package firmware
|
|
on:
|
|
push:
|
|
branches:
|
|
- '2.6'
|
|
- '2.7'
|
|
- '2.8'
|
|
- 'main'
|
|
tags:
|
|
- v*
|
|
paths-ignore:
|
|
- '**.md'
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
- '.github/workflows/nightly.yml'
|
|
- '.github/workflows/linux_cpn.yml'
|
|
- '.github/workflows/macosx_cpn.yml'
|
|
- '.github/workflows/win-cpn-32.yml'
|
|
- '.github/workflows/win_cpn-64.yml'
|
|
- 'companion/**'
|
|
- '.gitpod.yml'
|
|
- '.devcontainer/**'
|
|
pull_request:
|
|
branches:
|
|
- '2.6'
|
|
- '2.7'
|
|
- '2.8'
|
|
- 'main'
|
|
paths-ignore:
|
|
- '**.md'
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
- '.github/workflows/nightly.yml'
|
|
- '.github/workflows/linux_cpn.yml'
|
|
- '.github/workflows/macosx_cpn.yml'
|
|
- '.github/workflows/win-cpn-32.yml'
|
|
- '.github/workflows/win_cpn-64.yml'
|
|
- 'companion/**'
|
|
- '.gitpod.yml'
|
|
- '.devcontainer/**'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: Run tests
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
target:
|
|
- x9dp2019
|
|
- tx16s
|
|
- nv14
|
|
- el18
|
|
- t12
|
|
- t16
|
|
- t18
|
|
- t8
|
|
- tlite
|
|
- t20
|
|
- tx12
|
|
- x10
|
|
- x12s
|
|
- x7
|
|
- x9d
|
|
- x9dp
|
|
- x9e
|
|
- x9lite
|
|
- x9lites
|
|
- xlite
|
|
- xlites
|
|
container:
|
|
image: ghcr.io/edgetx/edgetx-dev:latest
|
|
volumes:
|
|
- ${{ github.workspace }}:/src
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
# fetch-depth: 0 # https://github.com/actions/checkout#Fetch-all-history-for-all-tags-and-branches
|
|
|
|
- name: Test ${{ matrix.target }}
|
|
env:
|
|
FLAVOR: ${{ matrix.target }}
|
|
run: |
|
|
echo "Running commit tests"
|
|
./tools/commit-tests.sh
|
|
|
|
|
|
build:
|
|
name: Run builds
|
|
needs: test
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
target:
|
|
- nv14;el18
|
|
- t12
|
|
- t16
|
|
- t18
|
|
- t8;zorro;pocket;commando8
|
|
- tlite;tlitef4;tpro;tprov2;lr3pro
|
|
- t20
|
|
- tx12;tx12mk2;boxer
|
|
- tx16s
|
|
- x10;x10-access
|
|
- x12s
|
|
- x7;x7-access
|
|
- x9d;x9dp;x9dp2019
|
|
- x9e;x9e-hall
|
|
- x9lite;x9lites
|
|
- xlite;xlites
|
|
container:
|
|
image: ghcr.io/edgetx/edgetx-dev:latest
|
|
volumes:
|
|
- ${{ github.workspace }}:/src
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Build ${{ matrix.target }}
|
|
env:
|
|
FLAVOR: ${{ matrix.target }}
|
|
run: |
|
|
echo "Running firmware build"
|
|
./tools/build-gh.sh
|
|
|
|
- name: Compose release filename
|
|
# https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions
|
|
run: echo "artifact_name=edgetx-firmware-${GITHUB_REF##*/}" >> $GITHUB_ENV
|
|
|
|
- name: Package firmware ${{ matrix.target }}
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: "${{ env.artifact_name }}"
|
|
path: |
|
|
fw.json
|
|
LICENSE
|
|
*.bin
|
|
retention-days: 15
|
|
if-no-files-found: error
|