Skip to content

Нова сумісність: ESP32-S3, ESP32-C3 #752

Нова сумісність: ESP32-S3, ESP32-C3

Нова сумісність: ESP32-S3, ESP32-C3 #752

Workflow file for this run

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
- 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 esp32s3
uses: ./.github/workflows/firmware-compile
with:
project-env: firmware_esp32s3
- name: Copy bin file
run: |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware_esp32s3/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: Compile lite firmware
uses: ./.github/workflows/firmware-compile
with:
project-env: firmware_lite
- name: Copy bin file
run: |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware_lite/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: Compile test firmware
uses: ./.github/workflows/firmware-compile
with:
project-env: firmware_test
- name: Copy bin file
run: |
cp -f ${{ github.workspace }}/firmware/.pio/build/firmware_test/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
project-env: 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