-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from youseetoo/beniroquai-patch-8
Update build_platformio_xiao_motor.yaml
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,26 +48,26 @@ jobs: | |
regex: false | ||
|
||
- name: Run PlatformIO | ||
run: pio run --environment UC2_3_I2CSlaveMotorX -v # Run the specific environment | ||
run: pio run --environment UC2_3_Xiao_Slave_Motor -v # Run the specific environment | ||
|
||
- name: merge into one binary | ||
run: | | ||
dir .pio/build/UC2_3_I2CSlaveMotorX/ | ||
mv .pio/build/UC2_3_I2CSlaveMotorX/*.bin build/ | ||
dir .pio/build/UC2_3_Xiao_Slave_Motor/ | ||
mv .pio/build/UC2_3_Xiao_Slave_Motor/*.bin build/ | ||
cd build | ||
python -m esptool --chip esp32s3 merge_bin -o UC2_3_I2CSlaveMotorX.bin --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.bin | ||
python -m esptool --chip esp32s3 merge_bin -o UC2_3_Xiao_Slave_Motor.bin --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.bin | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: merged-firmware | ||
path: build/UC2_3_I2CSlaveMotorX.bin | ||
path: build/UC2_3_Xiao_Slave_Motor.bin | ||
|
||
- name: Push to youseetoo Webtool | ||
uses: dmnemec/copy_file_to_another_repo_action@main | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | ||
with: | ||
source_file: 'build/UC2_3_I2CSlaveMotorX.bin' | ||
source_file: 'build/UC2_3_Xiao_Slave_Motor.bin' | ||
destination_repo: 'youseetoo/youseetoo.github.io' | ||
destination_folder: 'static/firmware_build' | ||
user_email: '[email protected]' | ||
|