Skip to content

Commit bd0c6d9

Browse files
committed
CI: fix package
1 parent 3af2246 commit bd0c6d9

File tree

5 files changed

+10
-21
lines changed

5 files changed

+10
-21
lines changed

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ target = "xtensa-esp32s3-espidf"
33

44
[target.xtensa-esp32s3-espidf]
55
linker = "ldproxy"
6-
runner = "espflash flash --baud=921600 --monitor --flash-size 16mb"
6+
runner = "espflash flash --baud=921600 --monitor --flash-size 16mb --partition-table partitions.csv"
77
rustflags = ["--cfg", "espidf_time64", "--cfg", "esp_idf_comp_vfs_enabled"]
88

99
[unstable]

.github/workflows/package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
- name: Enable caching
3434
uses: Swatinem/rust-cache@v2
3535

36+
- name: Install espflash
37+
run: cargo install espflash
38+
3639
- name: Package
3740
env:
3841
SAVE_IMAGE: "true"

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
- name: Enable caching
3434
uses: Swatinem/rust-cache@v2
3535

36+
- name: Install espflash
37+
run: cargo install espflash
38+
3639
- name: Package
3740
env:
3841
SAVE_IMAGE: "true"

espflash.toml

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ build_boards(){
55
echo "build echokit(boards/DIY)"
66
cargo build --release
77
cp target/xtensa-esp32s3-espidf/release/echokit package/echokit_boards
8-
espflash save-image --chip esp32s3 --merge --flash-size 16mb target/xtensa-esp32s3-espidf/release/echokit package/echokit_boards.bin
8+
espflash save-image --chip esp32s3 --merge --flash-size 16mb --partition-table partitions.csv target/xtensa-esp32s3-espidf/release/echokit package/echokit_boards.bin
99
}
1010

1111
build_cube2(){
1212
echo "build echokit(cube2)"
1313
cargo build --release --features=cube2
1414
cp target/xtensa-esp32s3-espidf/release/echokit package/echokit_cube2
15-
espflash save-image --chip esp32s3 --merge --flash-size 16mb target/xtensa-esp32s3-espidf/release/echokit package/echokit_cube2.bin
15+
espflash save-image --chip esp32s3 --merge --flash-size 16mb --partition-table partitions.csv target/xtensa-esp32s3-espidf/release/echokit package/echokit_cube2.bin
1616
}
1717

1818
build_box(){
1919
echo "build echokit(box)"
2020
cargo build --release --no-default-features --features=box
2121
cp target/xtensa-esp32s3-espidf/release/echokit package/echokit_box
22-
espflash save-image --chip esp32s3 --merge --flash-size 16mb target/xtensa-esp32s3-espidf/release/echokit package/echokit_box.bin
22+
espflash save-image --chip esp32s3 --merge --flash-size 16mb --partition-table partitions.csv target/xtensa-esp32s3-espidf/release/echokit package/echokit_box.bin
2323
}
2424

2525
# 如果没有参数,默认构建全部

0 commit comments

Comments
 (0)