Skip to content

Commit 4ffa550

Browse files
committed
github/workflows: Update Workflow.
Signed-off-by: lbuque <[email protected]>
1 parent b5e2289 commit 4ffa550

File tree

6 files changed

+285
-76
lines changed

6 files changed

+285
-76
lines changed

.github/workflows/build-release.yml

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,23 @@ on:
66
- '[0-9]+.[0-9]+.[0-9]+'
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
packages: write
12+
913
jobs:
1014
build:
1115
runs-on: [self-hosted, Linux, X64]
1216
steps:
1317
- uses: actions/[email protected]
1418

19+
- name: Install dependencies with apt
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install git wget flex bison gperf quilt python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 -y
23+
1524
- name: Install packages
16-
run: source tools/ci.sh && ci_esp32_idf522_setup
25+
run: source tools/ci.sh && ci_esp32_idf541_setup
1726

1827
- name: Build
1928
run: source tools/ci.sh && ci_esp32_nightly_build
@@ -25,36 +34,36 @@ jobs:
2534
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2635
with:
2736
files: |
28-
./m5stack/build-M5STACK_AirQ/uiflow-*-*.bin
29-
./m5stack/build-M5STACK_Atom_Echo/uiflow-*-*.bin
30-
./m5stack/build-M5STACK_Atom_Lite/uiflow-*-*.bin
31-
./m5stack/build-M5STACK_Atom_Matrix/uiflow-*-*.bin
32-
./m5stack/build-M5STACK_AtomS3/uiflow-*-*.bin
33-
./m5stack/build-M5STACK_AtomS3_Lite/uiflow-*-*.bin
34-
./m5stack/build-M5STACK_AtomS3R/uiflow-*-*.bin
35-
./m5stack/build-M5STACK_AtomS3R_CAM/uiflow-*-*.bin
36-
./m5stack/build-M5STACK_AtomS3U/uiflow-*-*.bin
37-
./m5stack/build-M5STACK_AtomU/uiflow-*-*.bin
38-
./m5stack/build-M5STACK_Basic/uiflow-*-*.bin
39-
./m5stack/build-M5STACK_Basic_4MB/uiflow-*-*.bin
40-
./m5stack/build-M5STACK_Capsule/uiflow-*-*.bin
41-
./m5stack/build-M5STACK_Cardputer/uiflow-*-*.bin
42-
./m5stack/build-M5STACK_Core2/uiflow-*-*.bin
43-
./m5stack/build-M5STACK_CoreInk/uiflow-*-*.bin
44-
./m5stack/build-M5STACK_CoreS3/uiflow-*-*.bin
45-
./m5stack/build-M5STACK_Dial/uiflow-*-*.bin
46-
./m5stack/build-M5STACK_DinMeter/uiflow-*-*.bin
47-
./m5stack/build-M5STACK_Fire/uiflow-*-*.bin
48-
./m5stack/build-M5STACK_NanoC6/uiflow-*-*.bin
49-
./m5stack/build-M5STACK_Paper/uiflow-*-*.bin
50-
./m5stack/build-M5STACK_PaperS3/uiflow-*-*.bin
51-
./m5stack/build-M5STACK_Stamp_PICO/uiflow-*-*.bin
52-
./m5stack/build-M5STACK_StamPLC/uiflow-*-*.bin
53-
./m5stack/build-M5STACK_StampS3/uiflow-*-*.bin
54-
./m5stack/build-M5STACK_Station/uiflow-*-*.bin
55-
./m5stack/build-M5STACK_StickC/uiflow-*-*.bin
56-
./m5stack/build-M5STACK_StickC_PLUS/uiflow-*-*.bin
57-
./m5stack/build-M5STACK_StickC_PLUS2/uiflow-*-*.bin
58-
./m5stack/build-M5STACK_Tough/uiflow-*-*.bin
59-
./third-party/build-SEEED_STUDIO_XIAO_ESP32S3/uiflow-*-*.bin
60-
./third-party/build-ESPRESSIF_ESP32_S3_BOX_3/uiflow-*-*.bin
37+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_AirQ/uiflow-*-*.bin
38+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Atom_Echo/uiflow-*-*.bin
39+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Atom_Lite/uiflow-*-*.bin
40+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Atom_Matrix/uiflow-*-*.bin
41+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_AtomS3/uiflow-*-*.bin
42+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_AtomS3_Lite/uiflow-*-*.bin
43+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_AtomS3R/uiflow-*-*.bin
44+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_AtomS3R_CAM/uiflow-*-*.bin
45+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_AtomS3U/uiflow-*-*.bin
46+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_AtomU/uiflow-*-*.bin
47+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Basic/uiflow-*-*.bin
48+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Basic_4MB/uiflow-*-*.bin
49+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Capsule/uiflow-*-*.bin
50+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Cardputer/uiflow-*-*.bin
51+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Core2/uiflow-*-*.bin
52+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_CoreInk/uiflow-*-*.bin
53+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_CoreS3/uiflow-*-*.bin
54+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Dial/uiflow-*-*.bin
55+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_DinMeter/uiflow-*-*.bin
56+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Fire/uiflow-*-*.bin
57+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_NanoC6/uiflow-*-*.bin
58+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Paper/uiflow-*-*.bin
59+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_PaperS3/uiflow-*-*.bin
60+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Stamp_PICO/uiflow-*-*.bin
61+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_StamPLC/uiflow-*-*.bin
62+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_StampS3/uiflow-*-*.bin
63+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Station/uiflow-*-*.bin
64+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_StickC/uiflow-*-*.bin
65+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_StickC_PLUS/uiflow-*-*.bin
66+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_StickC_PLUS2/uiflow-*-*.bin
67+
$GITHUB_WORKSPACE/m5stack/build-M5STACK_Tough/uiflow-*-*.bin
68+
$GITHUB_WORKSPACE/third-party/build-SEEED_STUDIO_XIAO_ESP32S3/uiflow-*-*.bin
69+
$GITHUB_WORKSPACE/third-party/build-ESPRESSIF_ESP32_S3_BOX_3/uiflow-*-*.bin

.github/workflows/code_formatting.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Check code formatting
22

3-
on: [push, pull_request]
3+
on:
4+
push: {}
5+
pull_request: {}
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
packages: write
411

512
jobs:
613
build:

.github/workflows/nightly-build.yml

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,178 +7,183 @@ on:
77

88
permissions:
99
contents: read
10+
packages: write
1011

1112
jobs:
1213
build:
1314
runs-on: [self-hosted, Linux, X64]
1415
steps:
1516
- uses: actions/[email protected]
17+
- name: Install dependencies with apt
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install git wget flex bison gperf quilt python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 -y
1621
- name: Install packages
17-
run: source tools/ci.sh && ci_esp32_idf522_setup
22+
run: source tools/ci.sh && ci_esp32_idf541_setup
1823
- name: Build
1924
run: source tools/ci.sh && ci_esp32_nightly_build
2025
- name: Deliver AirQ firmware
21-
uses: actions/upload-artifact@v3
26+
uses: actions/upload-artifact@v4
2227
with:
2328
name: M5STACK_AirQ_firmware
2429
path: ./m5stack/build-M5STACK_AirQ/uiflow-*-*.bin
2530
- name: Deliver Atom Echo firmware
26-
uses: actions/upload-artifact@v3
31+
uses: actions/upload-artifact@v4
2732
with:
2833
name: M5STACK_Atom_Echo_firmware
2934
path: ./m5stack/build-M5STACK_Atom_Echo/uiflow-*-*.bin
3035
- name: Deliver Atom Lite firmware
31-
uses: actions/upload-artifact@v3
36+
uses: actions/upload-artifact@v4
3237
with:
3338
name: M5STACK_Atom_Lite_firmware
3439
path: ./m5stack/build-M5STACK_Atom_Lite/uiflow-*-*.bin
3540
- name: Deliver Atom Matrix firmware
36-
uses: actions/upload-artifact@v3
41+
uses: actions/upload-artifact@v4
3742
with:
3843
name: M5STACK_Atom_Matrix_firmware
3944
path: ./m5stack/build-M5STACK_Atom_Matrix/uiflow-*-*.bin
4045
- name: Deliver AtomS3 firmware
41-
uses: actions/upload-artifact@v3
46+
uses: actions/upload-artifact@v4
4247
with:
4348
name: M5STACK_AtomS3_firmware
4449
path: ./m5stack/build-M5STACK_AtomS3/uiflow-*-*.bin
4550
- name: Deliver AtomS3-Lite firmware
46-
uses: actions/upload-artifact@v3
51+
uses: actions/upload-artifact@v4
4752
with:
4853
name: M5STACK_AtomS3-Lite_firmware
4954
path: ./m5stack/build-M5STACK_AtomS3_Lite/uiflow-*-*.bin
5055
- name: Deliver AtomS3R firmware
51-
uses: actions/upload-artifact@v3
56+
uses: actions/upload-artifact@v4
5257
with:
5358
name: M5STACK_AtomS3R_firmware
5459
path: ./m5stack/build-M5STACK_AtomS3R/uiflow-*-*.bin
5560
- name: Deliver AtomS3R-CAM firmware
56-
uses: actions/upload-artifact@v3
61+
uses: actions/upload-artifact@v4
5762
with:
5863
name: M5STACK_AtomS3R_CAM_firmware
5964
path: ./m5stack/build-M5STACK_AtomS3R_CAM/uiflow-*-*.bin
6065
- name: Deliver AtomS3U firmware
61-
uses: actions/upload-artifact@v3
66+
uses: actions/upload-artifact@v4
6267
with:
6368
name: M5STACK_AtomS3U_firmware
6469
path: ./m5stack/build-M5STACK_AtomS3U/uiflow-*-*.bin
6570
- name: Deliver AtomU firmware
66-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@v4
6772
with:
6873
name: M5STACK_AtomU_firmware
6974
path: ./m5stack/build-M5STACK_AtomU/uiflow-*-*.bin
7075
- name: Deliver Basic firmware
71-
uses: actions/upload-artifact@v3
76+
uses: actions/upload-artifact@v4
7277
with:
7378
name: M5STACK_Basic_firmware
7479
path: ./m5stack/build-M5STACK_Basic/uiflow-*-*.bin
7580
- name: Deliver Basic(4MB Flash) firmware
76-
uses: actions/upload-artifact@v3
81+
uses: actions/upload-artifact@v4
7782
with:
7883
name: M5STACK_Basic_4MB_Flash_firmware
7984
path: ./m5stack/build-M5STACK_Basic_4MB/uiflow-*-*.bin
8085
- name: Deliver Capsule firmware
81-
uses: actions/upload-artifact@v3
86+
uses: actions/upload-artifact@v4
8287
with:
8388
name: M5STACK_Capsule_firmware
8489
path: ./m5stack/build-M5STACK_Capsule/uiflow-*-*.bin
8590
- name: Deliver Cardputer firmware
86-
uses: actions/upload-artifact@v3
91+
uses: actions/upload-artifact@v4
8792
with:
8893
name: M5STACK_Cardputer_firmware
8994
path: ./m5stack/build-M5STACK_Cardputer/uiflow-*-*.bin
9095
- name: Deliver Core2 firmware
91-
uses: actions/upload-artifact@v3
96+
uses: actions/upload-artifact@v4
9297
with:
9398
name: M5STACK_Core2_firmware
9499
path: ./m5stack/build-M5STACK_Core2/uiflow-*-*.bin
95100
- name: Deliver CoreInk firmware
96-
uses: actions/upload-artifact@v3
101+
uses: actions/upload-artifact@v4
97102
with:
98103
name: M5STACK_CoreInk_firmware
99104
path: ./m5stack/build-M5STACK_CoreInk/uiflow-*-*.bin
100105
- name: Deliver CoreS3 firmware
101-
uses: actions/upload-artifact@v3
106+
uses: actions/upload-artifact@v4
102107
with:
103108
name: M5STACK_CoreS3_firmware
104109
path: ./m5stack/build-M5STACK_CoreS3/uiflow-*-*.bin
105110
- name: Deliver Dial firmware
106-
uses: actions/upload-artifact@v3
111+
uses: actions/upload-artifact@v4
107112
with:
108113
name: M5STACK_Dial_firmware
109114
path: ./m5stack/build-M5STACK_Dial/uiflow-*-*.bin
110115
- name: Deliver DinMeter firmware
111-
uses: actions/upload-artifact@v3
116+
uses: actions/upload-artifact@v4
112117
with:
113118
name: M5STACK_DinMeter_firmware
114119
path: ./m5stack/build-M5STACK_DinMeter/uiflow-*-*.bin
115120
- name: Deliver Fire firmware
116-
uses: actions/upload-artifact@v3
121+
uses: actions/upload-artifact@v4
117122
with:
118123
name: M5STACK_Fire_firmware
119124
path: ./m5stack/build-M5STACK_Fire/uiflow-*-*.bin
120125
- name: Deliver NanoC6 firmware
121-
uses: actions/upload-artifact@v3
126+
uses: actions/upload-artifact@v4
122127
with:
123128
name: M5STACK_NanoC6_firmware
124129
path: ./m5stack/build-M5STACK_NanoC6/uiflow-*-*.bin
125130
- name: Deliver Paper firmware
126-
uses: actions/upload-artifact@v3
131+
uses: actions/upload-artifact@v4
127132
with:
128133
name: M5STACK_Paper_firmware
129134
path: ./m5stack/build-M5STACK_Paper/uiflow-*-*.bin
130135
- name: Deliver PaperS3 firmware
131-
uses: actions/upload-artifact@v3
136+
uses: actions/upload-artifact@v4
132137
with:
133138
name: M5STACK_Paper_firmware
134139
path: ./m5stack/build-M5STACK_PaperS3/uiflow-*-*.bin
135140
- name: Deliver Stamp PICO firmware
136-
uses: actions/upload-artifact@v3
141+
uses: actions/upload-artifact@v4
137142
with:
138143
name: M5STACK_Stamp_PICO_firmware
139144
path: ./m5stack/build-M5STACK_Stamp_PICO/uiflow-*-*.bin
140145
- name: Deliver StamPLC firmware
141-
uses: actions/upload-artifact@v3
146+
uses: actions/upload-artifact@v4
142147
with:
143148
name: M5STACK_StamPLC_firmware
144149
path: ./m5stack/build-M5STACK_StamPLC/uiflow-*-*.bin
145150
- name: Deliver StampS3 firmware
146-
uses: actions/upload-artifact@v3
151+
uses: actions/upload-artifact@v4
147152
with:
148153
name: M5STACK_StampS3_firmware
149154
path: ./m5stack/build-M5STACK_StampS3/uiflow-*-*.bin
150155
- name: Deliver Station firmware
151-
uses: actions/upload-artifact@v3
156+
uses: actions/upload-artifact@v4
152157
with:
153158
name: M5STACK_Station_firmware
154159
path: ./m5stack/build-M5STACK_Station/uiflow-*-*.bin
155160
- name: Deliver StickC firmware
156-
uses: actions/upload-artifact@v3
161+
uses: actions/upload-artifact@v4
157162
with:
158163
name: M5STACK_StickC_firmware
159164
path: ./m5stack/build-M5STACK_StickC/uiflow-*-*.bin
160165
- name: Deliver StickC_PLUS firmware
161-
uses: actions/upload-artifact@v3
166+
uses: actions/upload-artifact@v4
162167
with:
163168
name: M5STACK_StickC_PLUS_firmware
164169
path: ./m5stack/build-M5STACK_StickC_PLUS/uiflow-*-*.bin
165170
- name: Deliver StickC_PLUS2 firmware
166-
uses: actions/upload-artifact@v3
171+
uses: actions/upload-artifact@v4
167172
with:
168173
name: M5STACK_StickC_PLUS2_firmware
169174
path: ./m5stack/build-M5STACK_StickC_PLUS2/uiflow-*-*.bin
170175
- name: Deliver Tough firmware
171-
uses: actions/upload-artifact@v3
176+
uses: actions/upload-artifact@v4
172177
with:
173178
name: M5STACK_Tough_firmware
174179
path: ./m5stack/build-M5STACK_Tough/uiflow-*-*.bin
175180
- name: Deliver XIAOS3 firmware
176-
uses: actions/upload-artifact@v3
181+
uses: actions/upload-artifact@v4
177182
with:
178183
name: M5STACK_XIAOS3_firmware
179184
path: ./third-party/build-SEEED_STUDIO_XIAO_ESP32S3/uiflow-*-*.bin
180185
- name: Deliver BOX-3 firmware
181-
uses: actions/upload-artifact@v3
186+
uses: actions/upload-artifact@v4
182187
with:
183188
name: M5STACK_BOX_3_firmware
184189
path: ./third-party/build-ESPRESSIF_ESP32_S3_BOX_3/uiflow-*-*.bin

0 commit comments

Comments
 (0)