Skip to content

Commit

Permalink
update4
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed May 24, 2024
1 parent f7ce94c commit afdde6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,14 @@ jobs:

- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Determine board type
run: |
if [[ "${{ matrix.board }}" == "heltec_wifi_lora_32_V3" || "${{ matrix.board }}" == "heltec_wireless_tracker" || "${{ matrix.board }}" == "heltec_wireless_stick" || "${{ matrix.board }}" == "heltec_wireless_stick_lite_v3" ]]; then
export BOARD_ENV="esp32s3"
else
if [[ "${{ matrix.board }}" == "heltec_ht-ct62" ]]; then
export BOARD_ENV="esp32c3"
else
export BOARD_ENV="esp32"
fi
fi
shell: bash

- name: Build target
run: |
pio run -e ${{ matrix.board }} --environment $BOARD_ENV
pio run -e ${{ matrix.board }}
- name: Build FS
run: |
pio run --target buildfs -e ${{ matrix.board }} --environment $BOARD_ENV
pio run --target buildfs -e ${{ matrix.board }}
- name: Move Files
run: |
Expand All @@ -73,7 +60,7 @@ jobs:
- name: Merge for web flashing
run: |
python3 -m pip install esptool
python3 -m esptool --chip $BOARD_ENV merge_bin -o installer/web_factory.bin --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 installer/firmware/bootloader.bin 0x9000 installer/firmware/partitions.bin 0xe000 installer/firmware/boot_app0.bin 0x10000 installer/firmware/firmware.bin 0x3D0000 installer/firmware/spiffs.bin
python3 -m esptool merge_bin -o installer/web_factory.bin --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 installer/firmware/bootloader.bin 0x9000 installer/firmware/partitions.bin 0xe000 installer/firmware/boot_app0.bin 0x10000 installer/firmware/firmware.bin 0x3D0000 installer/firmware/spiffs.bin
- name: Install Zip
run: sudo apt-get install zip
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,8 @@ jobs:
- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Determine board type
run: |
if [[ "${{ matrix.board }}" == "heltec_wifi_lora_32_V3" || "${{ matrix.board }}" == "heltec_wireless_tracker" || "${{ matrix.board }}" == "heltec_wireless_stick" || "${{ matrix.board }}" == "heltec_wireless_stick_lite_v3" ]]; then
export BOARD_ENV="esp32s3"
else
if [[ "${{ matrix.board }}" == "heltec_ht-ct62" ]]; then
export BOARD_ENV="esp32c3"
else
export BOARD_ENV="esp32"
fi
fi
shell: bash

- name: Build target
run: pio run -e ${{ matrix.board }} --environment $BOARD_ENV
run: pio run -e ${{ matrix.board }}

- name: Build FS
run: pio run --target buildfs -e ${{ matrix.board }} --environment $BOARD_ENV
run: pio run --target buildfs -e ${{ matrix.board }}

0 comments on commit afdde6a

Please sign in to comment.