@@ -24,58 +24,6 @@ concurrency:
24
24
25
25
26
26
jobs :
27
- build-app :
28
- name : Generate and Build App
29
- strategy :
30
- matrix :
31
- board :
32
- - mcu : esp32
33
- target : xtensa-esp32-none-elf
34
- - mcu : esp32c2
35
- target : riscv32imc-unknown-none-elf
36
- - mcu : esp32c3
37
- target : riscv32imc-unknown-none-elf
38
- - mcu : esp32c6
39
- target : riscv32imac-unknown-none-elf
40
- - mcu : esp32h2
41
- target : riscv32imac-unknown-none-elf
42
- - mcu : esp32s2
43
- target : xtensa-esp32s2-none-elf
44
- - mcu : esp32s3
45
- target : xtensa-esp32s3-none-elf
46
- fail-fast : false
47
- runs-on : ubuntu-22.04
48
- steps :
49
-
50
- - if : matrix.board.mcu == 'esp32' || matrix.board.mcu == 'esp32s2' || matrix.board.mcu == 'esp32s3'
51
-
52
- with :
53
- default : true
54
- buildtargets : ${{ matrix.board.mcu }}
55
- ldproxy : false
56
-
57
- - if : matrix.board.mcu != 'esp32' && matrix.board.mcu != 'esp32s2' && matrix.board.mcu != 'esp32s3'
58
- uses : dtolnay/rust-toolchain@nightly
59
- with :
60
- target : ${{ matrix.board.target }}
61
- components : rust-src
62
-
63
- - uses : Swatinem/rust-cache@v2
64
-
65
- - uses : actions/checkout@v4
66
- with :
67
- repository : esp-rs/esp-hal
68
- path : esp-hal
69
-
70
- - run : cargo build --release --example hello_world
71
- working-directory : esp-hal/${{ matrix.board.mcu }}-hal
72
-
73
- - uses : actions/upload-artifact@v3
74
- with :
75
- name : ${{ matrix.board.mcu }}_app
76
- path : esp-hal/${{ matrix.board.mcu }}-hal/target/${{ matrix.board.target }}/release/examples/hello_world
77
- if-no-files-found : error
78
-
79
27
build-espflash :
80
28
name : Build espflash
81
29
runs-on : ubuntu-20.04
100
48
run-target :
101
49
name : Run Tests on Target
102
50
if : ${{ github.repository_owner == 'esp-rs' }}
103
- needs : [ build-app, build- espflash]
51
+ needs : build-espflash
104
52
runs-on : [self-hosted, linux, x64, "${{ matrix.board.mcu }}${{ matrix.board.freq }}" ]
105
53
strategy :
106
54
matrix :
@@ -116,10 +64,6 @@ jobs:
116
64
fail-fast : false
117
65
steps :
118
66
- uses : actions/checkout@v4
119
- - uses : actions/download-artifact@v3
120
- with :
121
- name : ${{ matrix.board.mcu }}_app
122
- path : espflash/${{ matrix.board.mcu }}_app
123
67
- uses : actions/download-artifact@v3
124
68
with :
125
69
name : espflash
141
85
- name : flash test
142
86
env :
143
87
ESPFLASH_PORT : /dev/serial_ports/${{ matrix.board.mcu }}
144
- ESPFLASH_APP : espflash/${{ matrix.board.mcu }}_app/hello_world
88
+ ESPFLASH_APP : espflash/resources/apps/ ${{ matrix.board.mcu }}
145
89
shell : bash
146
90
run : |
147
91
result=$(espflash_app/espflash flash ${{ env.ESPFLASH_APP }} 2>&1)
@@ -184,7 +128,7 @@ jobs:
184
128
- name : save-image/write-bin test
185
129
env :
186
130
ESPFLASH_PORT : /dev/serial_ports/${{ matrix.board.mcu }}
187
- ESPFLASH_APP : espflash/${{ matrix.board.mcu }}_app/hello_world
131
+ ESPFLASH_APP : espflash/resources/apps/ ${{ matrix.board.mcu }}
188
132
run : |
189
133
result=$(espflash_app/espflash save-image --merge --chip ${{ matrix.board.mcu }} ${{ env.ESPFLASH_APP }} app.bin 2>&1)
190
134
echo "$result"
0 commit comments