Files
edgetx-gx12/.github/workflows/actions.yml
T

82 lines
1.8 KiB
YAML

---
name: Run tests and package firmware
on:
push:
branches:
- '2.4'
pull_request:
branches:
- '2.4'
jobs:
metadata:
name: Store metadata
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Package common files
uses: 'actions/upload-artifact@v2'
with:
name: edgetx-firmware-nightly
path: |
fw.json
LICENSE
README.md
test:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- T12
- T16
- T8
- TLITE
- TX12
- TX16S
- X10
- X12S
- X7
- X9DP
- X9DP2019
- X9LITE
- XLITE
container:
image: ghcr.io/edgetx/edgetx-commit-tests
volumes:
- ${{ github.workspace }}:/src
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
submodules: recursive
# - name: Fetch tags
# run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Test ${{ matrix.target }}
env:
FLAVOR: ${{ matrix.target }}
run: |
echo "Running commit tests"
./tools/commit-tests.sh
- name: Build ${{ matrix.target }}
env:
FLAVOR: ${{ matrix.target }}
run: |
echo "Running firmware build"
./tools/build-gh.sh
- name: Compose release filename
run: echo "artifact_name=edgetx-firmware-${GITHUB_REF}" >> $GITHUB_ENV
- name: Package firmware ${{ matrix.target }}
uses: 'actions/upload-artifact@v2'
with:
name: "$${ env.artifact_name }}"
path: "${{ github.workspace }}/*.bin"
retention-days: 15
if-no-files-found: error