File tree Expand file tree Collapse file tree 1 file changed +30
-3
lines changed Expand file tree Collapse file tree 1 file changed +30
-3
lines changed Original file line number Diff line number Diff line change 13
13
14
14
name : Build EmuFlight
15
15
jobs :
16
+ unittests :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v2
21
+ with :
22
+ fetch-depth : 0
23
+ - name : Cache toolchain
24
+ uses : actions/cache@v2
25
+ env :
26
+ cache-name : cache-toolchain
27
+ with :
28
+ # npm cache files are stored in `~/.npm` on Linux/macOS
29
+ path : ~/.toolchain
30
+ key : ${{ runner.os }}-build-${{ env.cache-name }}
31
+ restore-keys : |
32
+ ${{ runner.os }}-build-
33
+ ${{ runner.os }}-
34
+ - name : Setup Toolchain
35
+ uses : fiam/arm-none-eabi-gcc@master
36
+ with :
37
+ release : ' 9-2020-q2' # The arm-none-eabi-gcc release to use.
38
+ directory : ' ~/.toolchain'
39
+ - name : Install prerequisites
40
+ run : |
41
+ sudo apt install libblocksruntime-dev
42
+ # - name : Run tests
43
+ # run: |
44
+ # make test
16
45
build :
17
46
timeout-minutes : 75
18
47
strategy :
19
48
max-parallel : 4
20
49
matrix :
21
50
targets : [targets-group-1, targets-group-2, targets-group-3, targets-group-rest]
22
51
runs-on : ubuntu-latest
52
+ needs : unittests
23
53
steps :
24
54
25
55
# curl, by default, may timeout easily
93
123
echo "Artifact name: ${{ env.ARTIFACT_NAME }}"
94
124
continue-on-error : true
95
125
96
- - name : Run tests
97
- run : |
98
- make test
99
126
100
127
- name : Compile Code
101
128
run : |
You can’t perform that action at this time.
0 commit comments