-
Notifications
You must be signed in to change notification settings - Fork 43
46 lines (33 loc) · 1004 Bytes
/
testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Testing
on:
push:
tags:
- 'testing/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- 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: Machine details
run: |
free
cat /proc/cpuinfo | grep -E '^(processor)|(vendor_id)|(model name)|(cpu MHz)|(cache size)'
- name: Build HEX files for unified targets
run: make unified FC_VER_SUFFIX="${{ env.GIT_VER }}" FLASH_CONFIG_ERASE=yes
- name: Move HEX
run: mv -v obj/*.hex .
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: rotorflight-test-${{ env.GIT_VER }}
path: rotorflight*.hex
- name: Delete tag
run: git push origin :${GITHUB_REF}