Технічне: Оновлення залежностей, переїзд на min_spiffs #492
Workflow file for this run
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 + Lint Check | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
branches: | |
- develop | |
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 | |
- 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_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 | |
- 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 | |
- 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 | |
check_flasher: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check flasher with proof-html | |
uses: anishathalye/proof-html@v2 | |
with: | |
directory: ${{ github.workspace }}/flasher | |
run_black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Black in the check mode | |
uses: psf/black@stable | |
with: | |
options: "--check --verbose --line-length 120 --target-version py312 deploy" | |
src: ${{ github.workspace }}/deploy | |
version: "~= 24.0" | |