@@ -29,20 +29,26 @@ concurrency:
29
29
jobs :
30
30
build-espflash :
31
31
name : Build espflash
32
- runs-on : ubuntu-20.04
32
+ runs-on : ubuntu-22.04
33
+ container :
34
+ image : ubuntu:20.04
35
+
33
36
steps :
34
37
- uses : actions/checkout@v4
35
38
with :
36
39
repository : ${{ github.event.inputs.repository || github.repository }}
37
40
ref : ${{ github.event.inputs.branch || github.ref }}
38
41
39
- - uses : ./.github/actions/setup-target
40
- with :
41
- arch : x86_64
42
- target : x86_64-unknown-linux-gnu
42
+ - name : Install dependencies
43
+ env :
44
+ DEBIAN_FRONTEND : noninteractive
45
+ run : apt-get update && apt-get -y install curl musl-tools pkg-config
46
+
47
+ - name : Install toolchain
48
+ run : curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
43
49
44
50
- name : Build espflash
45
- run : cargo build --release
51
+ run : $HOME/.cargo/bin/ cargo build --release
46
52
working-directory : espflash
47
53
48
54
- uses : actions/upload-artifact@v4
@@ -52,11 +58,22 @@ jobs:
52
58
if-no-files-found : error
53
59
54
60
run-target :
55
- name : ${{ matrix.board.mcu }}${{ matrix.board.freq }}
56
61
if : github.repository_owner == 'esp-rs'
62
+ name : ${{ matrix.board.mcu }}${{ matrix.board.freq }}
57
63
needs : build-espflash
58
- runs-on : [self-hosted, linux, x64, "${{ matrix.board.mcu }}${{ matrix.board.freq }}"]
64
+ runs-on :
65
+ [
66
+ self-hosted,
67
+ linux,
68
+ x64,
69
+ " ${{ matrix.board.mcu }}${{ matrix.board.freq }}" ,
70
+ ]
71
+
72
+ env :
73
+ ESPFLASH_PORT : /dev/serial_ports/${{ matrix.board.mcu }}
74
+
59
75
strategy :
76
+ fail-fast : false
60
77
matrix :
61
78
board :
62
79
- mcu : esp32
68
85
- mcu : esp32h2
69
86
- mcu : esp32s2
70
87
- mcu : esp32s3
71
- fail-fast : false
72
- env :
73
- ESPFLASH_PORT : /dev/serial_ports/${{ matrix.board.mcu }}
88
+
74
89
steps :
75
90
- uses : actions/checkout@v4
76
91
0 commit comments