Skip to content

Commit

Permalink
update3
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed May 24, 2024
1 parent ce69b0c commit f7ce94c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,27 @@ 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 }}
pio run -e ${{ matrix.board }} --environment $BOARD_ENV
- name: Build FS
run: |
pio run --target buildfs -e ${{ matrix.board }}
pio run --target buildfs -e ${{ matrix.board }} --environment $BOARD_ENV
- name: Move Files
run: |
Expand All @@ -56,7 +69,7 @@ jobs:
cp .pio/build/${{ matrix.board }}/partitions.bin installer/firmware/
cp .pio/build/${{ matrix.board }}/spiffs.bin installer/firmware/
cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin installer/firmware/
- name: Merge for web flashing
run: |
python3 -m pip install esptool
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,21 @@ 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 }}
run: pio run -e ${{ matrix.board }} --environment $BOARD_ENV

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

0 comments on commit f7ce94c

Please sign in to comment.