Нова сумісність: ESP32-S3, ESP32-C3, #747
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
name: 🏗️ Compile Firmware | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
branches: | |
- develop | |
paths: | |
- "firmware/**" | |
- "updater/**" | |
workflow_dispatch: | |
jobs: | |
compile_firmware: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Compile firmware | |
uses: ./.github/workflows/firmware-compile | |
with: | |
project-folder: firmware | |
project-env: firmware | |
- name: Copy bin file | |
run: | | |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware/firmware.bin ${{ github.workspace }}/firmware.bin | |
- name: Upload firmware | |
uses: actions/upload-artifact@v4 | |
with: | |
name: firmware.bin | |
path: ${{ github.workspace }}/firmware.bin | |
compile_firmware_esp32s3: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Compile firmware | |
uses: ./.github/workflows/firmware-compile | |
with: | |
project-folder: firmware | |
project-env: firmware_esp32s3 | |
- name: Copy bin file | |
run: | | |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware/firmware.bin ${{ github.workspace }}/firmware-esp32s3.bin | |
- name: Upload firmware esp32s3 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: firmware-esp32s3.bin | |
path: ${{ github.workspace }}/firmware-esp32s3.bin | |
compile_firmware_lite: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Switch to LITE version | |
run: | | |
sed -i 's/#define LITE ./#define LITE 1/' ${{ github.workspace }}/firmware/src/Definitions.h | |
- name: Compile firmware | |
uses: ./.github/workflows/firmware-compile | |
with: | |
project-folder: firmware | |
project-env: firmware | |
- name: Copy bin file | |
run: | | |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware/firmware.bin ${{ github.workspace }}/firmware-lite.bin | |
- name: Upload firmware lite | |
uses: actions/upload-artifact@v4 | |
with: | |
name: firmware-lite.bin | |
path: ${{ github.workspace }}/firmware-lite.bin | |
compile_jaam2_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Switch to TEST_MODE build | |
run: | | |
sed -i 's/#define LITE ./#define LITE 0/' ${{ github.workspace }}/firmware/src/Definitions.h | |
sed -i 's/#define TEST_MODE ./#define TEST_MODE 1/' ${{ github.workspace }}/firmware/src/Definitions.h | |
- name: Compile test firmware | |
uses: ./.github/workflows/firmware-compile | |
with: | |
project-folder: firmware | |
project-env: firmware | |
- name: Copy bin file | |
run: | | |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware/firmware.bin ${{ github.workspace }}/firmware-jaam2-test.bin | |
- name: Upload JAAM 2 test firmware | |
uses: actions/upload-artifact@v4 | |
with: | |
name: firmware-jaam2-test.bin | |
path: ${{ github.workspace }}/firmware-jaam2-test.bin | |
# check_firmware: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: Check firmware | |
# uses: ./.github/workflows/firmware-check | |
# with: | |
# project-folder: firmware | |
compile_updater: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Compile updater | |
uses: ./.github/workflows/firmware-compile | |
with: | |
project-folder: updater | |
- name: Copy bin file | |
run: | | |
cp -f ${{ github.workspace }}/updater/.pio/build/updater/firmware.bin ${{ github.workspace }}/updater.bin | |
- name: Upload updater | |
uses: actions/upload-artifact@v4 | |
with: | |
name: updater.bin | |
path: ${{ github.workspace }}/updater.bin | |