Skip to content

Commit 2d62975

Browse files
author
danny
committed
change order of build
1 parent 1996a01 commit 2d62975

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

.github/workflows/build.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ jobs:
1818
uses: actions/checkout@v6
1919
- name: Set environment variables
2020
run: echo "VERSION=$(cat version)" >> $GITHUB_ENV
21+
- uses: actions/setup-python@v6
22+
with:
23+
python-version: '3.14'
24+
cache: 'pip'
25+
- name: Install PlatformIO Core
26+
run: |
27+
pip install --upgrade platformio
28+
pip install idf-component-manager
29+
- name: Build ESP32 firmware
30+
run: |
31+
pio pkg list --project-dir firmware/ESP32/
32+
pio run -d firmware/ESP32/
33+
cd firmware/ESP32/.pio/build/esp32dev/
34+
zip -r esp32-firmware.zip firmware.bin partitions.bin bootloader.bin
2135
- name: Fail if Git-Tag already exist on main
2236
if: github.ref == 'refs/heads/main'
2337
run: |
@@ -167,20 +181,7 @@ jobs:
167181
path: |
168182
firmware/nrf5x/compiled/*.bin
169183
170-
- uses: actions/setup-python@v6
171-
with:
172-
python-version: '3.14'
173-
cache: 'pip'
174-
- name: Install PlatformIO Core
175-
run: |
176-
pip install --upgrade platformio
177-
pip install idf-component-manager
178-
- name: Build ESP32 firmware
179-
run: |
180-
pio pkg list --project-dir firmware/ESP32/
181-
pio run -d firmware/ESP32/
182-
cd firmware/ESP32/.pio/build/esp32dev/
183-
zip -r esp32-firmware.zip firmware.bin partitions.bin bootloader.bin
184+
184185
- name: Upload ESP32 firmware
185186
uses: actions/upload-artifact@v6
186187
with:

0 commit comments

Comments
 (0)