Skip to content

Testing

Testing #112

Workflow file for this run

name: Testing
on:
push:
tags:
- 'testing/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Cache ARM tools
uses: actions/cache@v3
env:
cache-name: cache-arm-tools
with:
path: downloads/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2
key: gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux
- name: Install ARM tools
run: make arm_sdk_install
- name: Set build variables
run: |
echo "GIT_VER=${GITHUB_REF##*/}" >> ${GITHUB_ENV}
echo "GIT_TAG=${GITHUB_REF##refs/tags/}" >> ${GITHUB_ENV}
cat ${GITHUB_ENV}
- name: Build HEX files for unified targets
run: make unified unified_osd FC_VER_SUFFIX="${{ env.GIT_VER }}" FLASH_CONFIG_ERASE=yes
- name: Move HEX
run: mv obj/*.hex .
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: rotorflight-test-${{ env.GIT_VER }}
path: rotorflight*.hex
- name: Delete tag
run: git push origin :${GITHUB_REF}