@@ -29,8 +29,16 @@ concurrency:
2929
3030jobs :
3131 build-packages :
32- name : Build packages
32+ name : Build packages | (${{ matrix.target.host }})
3333 runs-on : ubuntu-latest
34+ strategy :
35+ fail-fast : false
36+ matrix :
37+ target :
38+ - host : aarch64
39+ target : aarch64-unknown-linux-gnu
40+ - host : armv7
41+ target : armv7-unknown-linux-gnueabihf
3442
3543 steps :
3644 - uses : actions/checkout@v6
@@ -48,81 +56,80 @@ jobs:
4856
4957 - name : Build espflash
5058 run : |
51- cross build --release --target armv7-unknown-linux-gnueabihf
52- cross build --release --target aarch64-unknown-linux-gnu
59+ cross build --release --target ${{ matrix.target.target }}
5360 working-directory : espflash
5461
5562 - name : Build xtask
5663 run : |
57- cross build --release --target armv7-unknown-linux-gnueabihf
58- cross build --release --target aarch64-unknown-linux-gnu
64+ cross build --release --target ${{ matrix.target.target }}
5965 working-directory : xtask
6066
61- - uses : actions/upload-artifact@v4
67+ - name : Upload espflash
68+ uses : actions/upload-artifact@v4
6269 with :
63- name : espflash-armv7
64- path : target/armv7-unknown-linux-gnueabihf /release/espflash
70+ name : espflash-${{ matrix.target.host }}
71+ path : target/${{ matrix.target.target }} /release/espflash
6572 if-no-files-found : error
6673
67- - uses : actions/upload-artifact@v4
74+ - name : Upload xtask
75+ uses : actions/upload-artifact@v4
6876 with :
69- name : espflash-aarch64
70- path : target/aarch64-unknown-linux-gnu/release/espflash
71- if-no-files-found : error
72- - uses : actions/upload-artifact@v4
73- with :
74- name : xtask-armv7
75- path : target/armv7-unknown-linux-gnueabihf/release/xtask
77+ name : xtask-${{ matrix.target.host }}
78+ path : target/${{ matrix.target.target }}/release/xtask
7679 if-no-files-found : error
7780
78- - uses : actions/upload-artifact@v4
79- with :
80- name : xtask-aarch64
81- path : target/aarch64-unknown-linux-gnu/release/xtask
82- if-no-files-found : error
8381 run-packages :
8482 if : github.repository_owner == 'esp-rs'
85- name : ${{ matrix.target.soc }} esp-hal
83+ name : HIL | ${{ matrix.target.soc }}
8684 needs : build-packages
8785 runs-on : [self-hosted, "${{ matrix.target.runner }}"]
86+ env :
87+ ESPFLASH_PORT : ${{ matrix.target.port }}
8888
8989 strategy :
9090 fail-fast : false
9191 matrix :
9292 target :
93- # - soc: esp32c2
94- # runner: esp32c2-jtag
95- # host: aarch64
96- # - soc: esp32c3
97- # runner: esp32c3-usb
98- # host: armv7
93+ - soc : esp32c2
94+ runner : esp32c2-jtag
95+ port : /dev/ttyUSB2
96+ host : aarch64
97+ - soc : esp32c3
98+ runner : esp32c3-usb
99+ port : /dev/ttyACM0
100+ host : armv7
99101 - soc : esp32c6
100102 runner : esp32c6-usb
103+ port : /dev/ttyACM0
101104 host : armv7
102- # - soc: esp32h2
103- # runner: esp32h2-usb
104- # host: armv7
105- # - soc: esp32
106- # runner: esp32-jtag
107- # host: aarch64
108- - soc : esp32s2
109- runner : esp32s2-jtag
105+ - soc : esp32h2
106+ runner : esp32h2-usb
107+ port : /dev/ttyUSB0
110108 host : armv7
111- # - soc: esp32s3
112- # runner: esp32s3-usb
109+ - soc : esp32
110+ runner : esp32-jtag
111+ port : /dev/ttyUSB2
112+ host : aarch64
113+ # - soc: esp32s2
114+ # runner: esp32s2-jtag
115+ # port: /dev/ttyUSB0
113116 # host: armv7
117+ - soc : esp32s3
118+ runner : esp32s3-usb
119+ port : /dev/ttyUSB0
120+ host : armv7
114121
115122 steps :
116123 - uses : actions/checkout@v6
117124
118125 - uses : actions/download-artifact@v7
119126 with :
120- name : espflash-armv7
127+ name : espflash-${{ matrix.target.host }}
121128 path : espflash_app
122129
123130 - uses : actions/download-artifact@v7
124131 with :
125- name : xtask-armv7
132+ name : xtask-${{ matrix.target.host }}
126133 path : xtask_app
127134
128135 - name : Set up espflash binary
@@ -132,8 +139,5 @@ jobs:
132139 echo "$PWD/espflash_app" >> "$GITHUB_PATH"
133140 echo "$PWD/xtask_app" >> "$GITHUB_PATH"
134141
135- - name : Check connections
136- run : lsusb
137-
138142 - name : Run all tests
139143 run : xtask_app/xtask run-tests --chip ${{ matrix.target.soc }} -t 60 --no-build
0 commit comments