Skip to content

Commit 1aa1b65

Browse files
committed
chore: update workflows
1 parent 694f384 commit 1aa1b65

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

.forgejo/workflows/push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: write
1616
checks: write
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919
with:
2020
submodules: recursive
2121
- uses: actions/setup-node@v4

.github/workflows/tagging.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- "*"
7+
workflow_dispatch:
78

89
jobs:
910
build:
@@ -12,7 +13,7 @@ jobs:
1213
contents: write
1314
checks: write
1415
steps:
15-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1617
with:
1718
submodules: recursive
1819
- name: "Install and build"
@@ -44,12 +45,12 @@ jobs:
4445
version: esp32s3
4546
epd_variant: [213epd, 29epd]
4647
exclude:
47-
- chip: {name: btclock_rev_b, version: esp32s3}
48+
- chip: { name: btclock_rev_b, version: esp32s3 }
4849
epd_variant: 29epd
49-
- chip: {name: btclock_v8, version: esp32s3}
50+
- chip: { name: btclock_v8, version: esp32s3 }
5051
epd_variant: 29epd
5152
steps:
52-
- uses: actions/download-artifact@v4
53+
- uses: actions/download-artifact@v5
5354
with:
5455
name: prepared-outputs
5556
path: .pio
@@ -58,9 +59,10 @@ jobs:
5859
# - name: Create merged firmware binary
5960
# run: mkdir -p ${{ matrix.chip.name }}_${{ matrix.epd_variant }} && esptool.py --chip ${{ matrix.chip.version }} merge_bin -o ${{ matrix.chip.name }}_${{ matrix.epd_variant }}/${{ matrix.chip.name }}_${{ matrix.epd_variant }}.bin --flash_mode dio 0x0000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/bootloader.bin 0x8000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/partitions.bin 0xe000 .pio/boot_app0.bin 0x10000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/firmware.bin 0x369000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/littlefs.bin
6061
- name: Create merged firmware binary
62+
shell: bash
6163
run: |
64+
mkdir -p ${{ matrix.chip.name }}_${{ matrix.epd_variant }}
6265
if [ "${{ matrix.chip.name }}" == "btclock_v8" ]; then
63-
mkdir -p ${{ matrix.chip.name }}_${{ matrix.epd_variant }} && \
6466
esptool.py --chip ${{ matrix.chip.version }} merge_bin \
6567
-o ${{ matrix.chip.name }}_${{ matrix.epd_variant }}/${{ matrix.chip.name }}_${{ matrix.epd_variant }}.bin \
6668
--flash_mode dio \
@@ -70,18 +72,27 @@ jobs:
7072
0x8000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/partitions.bin \
7173
0xe000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/ota_data_initial.bin \
7274
0x10000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/firmware.bin \
73-
0x810000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/littlefs.bin;
75+
0xDF0000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/littlefs_16MB.bin
76+
elif [ "${{ matrix.chip.name }}" == "btclock_rev_b" ]; then
77+
esptool.py --chip ${{ matrix.chip.version }} merge_bin \
78+
-o ${{ matrix.chip.name }}_${{ matrix.epd_variant }}/${{ matrix.chip.name }}_${{ matrix.epd_variant }}.bin \
79+
--flash_mode dio \
80+
--flash_freq 80m \
81+
--flash_size 8MB \
82+
0x0000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/bootloader.bin \
83+
0x8000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/partitions.bin \
84+
0xe000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/ota_data_initial.bin \
85+
0x10000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/firmware.bin \
86+
0x6F0000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/littlefs_8MB.bin;
7487
else
75-
# Original command for other cases
76-
mkdir -p ${{ matrix.chip.name }}_${{ matrix.epd_variant }} && \
7788
esptool.py --chip ${{ matrix.chip.version }} merge_bin \
7889
-o ${{ matrix.chip.name }}_${{ matrix.epd_variant }}/${{ matrix.chip.name }}_${{ matrix.epd_variant }}.bin \
7990
--flash_mode dio \
8091
0x0000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/bootloader.bin \
8192
0x8000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/partitions.bin \
8293
0xe000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/ota_data_initial.bin \
8394
0x10000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/firmware.bin \
84-
0x369000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/littlefs.bin
95+
0x380000 .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/littlefs_4MB.bin
8596
# Adjust the offset for littlefs or other files as needed for the original case
8697
fi
8798
@@ -115,7 +126,7 @@ jobs:
115126
needs: merge
116127
steps:
117128
- name: Download matrix outputs
118-
uses: actions/download-artifact@v4
129+
uses: actions/download-artifact@v5
119130
with:
120131
pattern: build-*
121132
merge-multiple: false

0 commit comments

Comments
 (0)