Skip to content

Commit 84042ee

Browse files
committed
.github: Compile using action's server.
Signed-off-by: lbuque <[email protected]>
1 parent 5bd0654 commit 84042ee

File tree

5 files changed

+99
-7
lines changed

5 files changed

+99
-7
lines changed

.github/workflows/build-release.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
jobs:
1414
build:
15-
runs-on: [self-hosted, Linux, X64]
15+
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/[email protected]
1818

@@ -21,6 +21,23 @@ jobs:
2121
sudo apt-get update
2222
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
2323
24+
- name: Cache esp-idf
25+
uses: actions/cache@v4
26+
id: cache-esp-idf
27+
with:
28+
path: |
29+
~/.espressif
30+
${{ github.workspace }}/esp-idf
31+
key: ${{ runner.os }}-idf-v5.4.1
32+
33+
- name: Install ESP-IDF
34+
if: steps.cache-esp-idf.outputs.cache-hit != 'true'
35+
run: |
36+
git clone --depth=1 -b $IDF_VERSION https://github.com/espressif/esp-idf.git
37+
./esp-idf/install.sh
38+
env:
39+
IDF_VERSION: "v5.4.1"
40+
2441
- name: Install packages
2542
run: source tools/ci.sh && ci_esp32_idf541_setup
2643

.github/workflows/code_formatting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
build:
14-
runs-on: [self-hosted, Linux, X64]
14+
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
1717
- uses: actions/setup-python@v5

.github/workflows/nightly-build.yml

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,177 +11,235 @@ permissions:
1111

1212
jobs:
1313
build:
14-
runs-on: [self-hosted, Linux, X64]
14+
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/[email protected]
1717
- name: Install dependencies with apt
1818
run: |
1919
sudo apt-get update
2020
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
21+
22+
- name: Cache esp-idf
23+
uses: actions/cache@v4
24+
id: cache-esp-idf
25+
with:
26+
path: |
27+
~/.espressif
28+
${{ github.workspace }}/esp-idf
29+
key: ${{ runner.os }}-idf-v5.4.1
30+
31+
- name: Install ESP-IDF
32+
if: steps.cache-esp-idf.outputs.cache-hit != 'true'
33+
run: |
34+
git clone --depth=1 -b $IDF_VERSION https://github.com/espressif/esp-idf.git
35+
./esp-idf/install.sh
36+
env:
37+
IDF_VERSION: "v5.4.1"
38+
2139
- name: Install packages
2240
run: source tools/ci.sh && ci_esp32_idf541_setup
41+
2342
- name: Build
2443
run: source tools/ci.sh && ci_esp32_nightly_build
44+
2545
- name: Deliver AirQ firmware
2646
uses: actions/upload-artifact@v4
2747
with:
2848
name: M5STACK_AirQ_firmware
2949
path: ./m5stack/build-M5STACK_AirQ/uiflow-*-*.bin
50+
3051
- name: Deliver Atom Echo firmware
3152
uses: actions/upload-artifact@v4
3253
with:
3354
name: M5STACK_Atom_Echo_firmware
3455
path: ./m5stack/build-M5STACK_Atom_Echo/uiflow-*-*.bin
56+
3557
- name: Deliver Atom Lite firmware
3658
uses: actions/upload-artifact@v4
3759
with:
3860
name: M5STACK_Atom_Lite_firmware
3961
path: ./m5stack/build-M5STACK_Atom_Lite/uiflow-*-*.bin
62+
4063
- name: Deliver Atom Matrix firmware
4164
uses: actions/upload-artifact@v4
4265
with:
4366
name: M5STACK_Atom_Matrix_firmware
4467
path: ./m5stack/build-M5STACK_Atom_Matrix/uiflow-*-*.bin
68+
4569
- name: Deliver AtomS3 firmware
4670
uses: actions/upload-artifact@v4
4771
with:
4872
name: M5STACK_AtomS3_firmware
4973
path: ./m5stack/build-M5STACK_AtomS3/uiflow-*-*.bin
74+
5075
- name: Deliver AtomS3-Lite firmware
5176
uses: actions/upload-artifact@v4
5277
with:
5378
name: M5STACK_AtomS3-Lite_firmware
5479
path: ./m5stack/build-M5STACK_AtomS3_Lite/uiflow-*-*.bin
80+
5581
- name: Deliver AtomS3R firmware
5682
uses: actions/upload-artifact@v4
5783
with:
5884
name: M5STACK_AtomS3R_firmware
5985
path: ./m5stack/build-M5STACK_AtomS3R/uiflow-*-*.bin
86+
6087
- name: Deliver AtomS3R-CAM firmware
6188
uses: actions/upload-artifact@v4
6289
with:
6390
name: M5STACK_AtomS3R_CAM_firmware
6491
path: ./m5stack/build-M5STACK_AtomS3R_CAM/uiflow-*-*.bin
92+
6593
- name: Deliver AtomS3U firmware
6694
uses: actions/upload-artifact@v4
6795
with:
6896
name: M5STACK_AtomS3U_firmware
6997
path: ./m5stack/build-M5STACK_AtomS3U/uiflow-*-*.bin
98+
7099
- name: Deliver AtomU firmware
71100
uses: actions/upload-artifact@v4
72101
with:
73102
name: M5STACK_AtomU_firmware
74103
path: ./m5stack/build-M5STACK_AtomU/uiflow-*-*.bin
104+
75105
- name: Deliver Basic firmware
76106
uses: actions/upload-artifact@v4
77107
with:
78108
name: M5STACK_Basic_firmware
79109
path: ./m5stack/build-M5STACK_Basic/uiflow-*-*.bin
110+
80111
- name: Deliver Basic(4MB Flash) firmware
81112
uses: actions/upload-artifact@v4
82113
with:
83114
name: M5STACK_Basic_4MB_Flash_firmware
84115
path: ./m5stack/build-M5STACK_Basic_4MB/uiflow-*-*.bin
116+
85117
- name: Deliver Capsule firmware
86118
uses: actions/upload-artifact@v4
87119
with:
88120
name: M5STACK_Capsule_firmware
89121
path: ./m5stack/build-M5STACK_Capsule/uiflow-*-*.bin
122+
90123
- name: Deliver Cardputer firmware
91124
uses: actions/upload-artifact@v4
92125
with:
93126
name: M5STACK_Cardputer_firmware
94127
path: ./m5stack/build-M5STACK_Cardputer/uiflow-*-*.bin
128+
95129
- name: Deliver Core2 firmware
96130
uses: actions/upload-artifact@v4
97131
with:
98132
name: M5STACK_Core2_firmware
99133
path: ./m5stack/build-M5STACK_Core2/uiflow-*-*.bin
134+
100135
- name: Deliver CoreInk firmware
101136
uses: actions/upload-artifact@v4
102137
with:
103138
name: M5STACK_CoreInk_firmware
104139
path: ./m5stack/build-M5STACK_CoreInk/uiflow-*-*.bin
140+
105141
- name: Deliver CoreS3 firmware
106142
uses: actions/upload-artifact@v4
107143
with:
108144
name: M5STACK_CoreS3_firmware
109145
path: ./m5stack/build-M5STACK_CoreS3/uiflow-*-*.bin
146+
110147
- name: Deliver Dial firmware
111148
uses: actions/upload-artifact@v4
112149
with:
113150
name: M5STACK_Dial_firmware
114151
path: ./m5stack/build-M5STACK_Dial/uiflow-*-*.bin
152+
115153
- name: Deliver DinMeter firmware
116154
uses: actions/upload-artifact@v4
117155
with:
118156
name: M5STACK_DinMeter_firmware
119157
path: ./m5stack/build-M5STACK_DinMeter/uiflow-*-*.bin
158+
120159
- name: Deliver Fire firmware
121160
uses: actions/upload-artifact@v4
122161
with:
123162
name: M5STACK_Fire_firmware
124163
path: ./m5stack/build-M5STACK_Fire/uiflow-*-*.bin
164+
125165
- name: Deliver NanoC6 firmware
126166
uses: actions/upload-artifact@v4
127167
with:
128168
name: M5STACK_NanoC6_firmware
129169
path: ./m5stack/build-M5STACK_NanoC6/uiflow-*-*.bin
170+
130171
- name: Deliver Paper firmware
131172
uses: actions/upload-artifact@v4
132173
with:
133174
name: M5STACK_Paper_firmware
134175
path: ./m5stack/build-M5STACK_Paper/uiflow-*-*.bin
176+
135177
- name: Deliver PaperS3 firmware
136178
uses: actions/upload-artifact@v4
137179
with:
138180
name: M5STACK_Paper_firmware
139181
path: ./m5stack/build-M5STACK_PaperS3/uiflow-*-*.bin
182+
140183
- name: Deliver Stamp PICO firmware
141184
uses: actions/upload-artifact@v4
142185
with:
143186
name: M5STACK_Stamp_PICO_firmware
144187
path: ./m5stack/build-M5STACK_Stamp_PICO/uiflow-*-*.bin
188+
145189
- name: Deliver StamPLC firmware
146190
uses: actions/upload-artifact@v4
147191
with:
148192
name: M5STACK_StamPLC_firmware
149193
path: ./m5stack/build-M5STACK_StamPLC/uiflow-*-*.bin
194+
150195
- name: Deliver StampS3 firmware
151196
uses: actions/upload-artifact@v4
152197
with:
153198
name: M5STACK_StampS3_firmware
154199
path: ./m5stack/build-M5STACK_StampS3/uiflow-*-*.bin
200+
155201
- name: Deliver Station firmware
156202
uses: actions/upload-artifact@v4
157203
with:
158204
name: M5STACK_Station_firmware
159205
path: ./m5stack/build-M5STACK_Station/uiflow-*-*.bin
206+
160207
- name: Deliver StickC firmware
161208
uses: actions/upload-artifact@v4
162209
with:
163210
name: M5STACK_StickC_firmware
164211
path: ./m5stack/build-M5STACK_StickC/uiflow-*-*.bin
212+
165213
- name: Deliver StickC_PLUS firmware
166214
uses: actions/upload-artifact@v4
167215
with:
168216
name: M5STACK_StickC_PLUS_firmware
169217
path: ./m5stack/build-M5STACK_StickC_PLUS/uiflow-*-*.bin
218+
170219
- name: Deliver StickC_PLUS2 firmware
171220
uses: actions/upload-artifact@v4
172221
with:
173222
name: M5STACK_StickC_PLUS2_firmware
174223
path: ./m5stack/build-M5STACK_StickC_PLUS2/uiflow-*-*.bin
224+
225+
- name: Deliver Tab5 firmware
226+
uses: actions/upload-artifact@v4
227+
with:
228+
name: M5STACK_Tab5_firmware
229+
path: ./m5stack/build-M5STACK_Tab5/uiflow-*-*.bin
230+
175231
- name: Deliver Tough firmware
176232
uses: actions/upload-artifact@v4
177233
with:
178234
name: M5STACK_Tough_firmware
179235
path: ./m5stack/build-M5STACK_Tough/uiflow-*-*.bin
236+
180237
- name: Deliver XIAOS3 firmware
181238
uses: actions/upload-artifact@v4
182239
with:
183240
name: M5STACK_XIAOS3_firmware
184241
path: ./third-party/build-SEEED_STUDIO_XIAO_ESP32S3/uiflow-*-*.bin
242+
185243
- name: Deliver BOX-3 firmware
186244
uses: actions/upload-artifact@v4
187245
with:

.github/workflows/ports_m5stack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- M5STACK_StickC_PLUS2
9393
- M5STACK_Tab5
9494
- M5STACK_Tough
95-
max-parallel: 3
95+
max-parallel: 4
9696
steps:
9797
- uses: actions/checkout@v4
9898

tools/ci.sh

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,27 @@ fi
1313
########################################################################################
1414
# code formatting
1515

16+
function uncrustify_setup {
17+
if [ uncrustify --version | grep -q "Uncrustify-0.72.0_f" ]; then
18+
echo "uncrustify 0.72.0 is already installed."
19+
return 0
20+
fi
21+
22+
wget https://github.com/uncrustify/uncrustify/archive/refs/tags/uncrustify-0.72.0.tar.gz
23+
tar -xvf uncrustify-0.72.0.tar.gz
24+
cd uncrustify-uncrustify-0.72.0
25+
mkdir build
26+
cd build
27+
cmake -DCMAKE_BUILD_TYPE=Release ..
28+
make -j$(nproc)
29+
sudo make install
30+
cd ../..
31+
rm -rf uncrustify-0.72.0.tar.gz
32+
rm -rf uncrustify-uncrustify-0.72.0
33+
}
34+
1635
function ci_code_formatting_setup {
17-
sudo apt-add-repository --yes ppa:pybricks/ppa
18-
sudo apt update
19-
sudo apt-get install uncrustify -y
36+
uncrustify_setup
2037
sudo apt install pipx -y
2138
pipx install uv
2239
uv venv

0 commit comments

Comments
 (0)