Skip to content

CI changes

CI changes #57

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
pull_request:
jobs:
env:
uses: ./.github/workflows/env.yaml
build:
name: Build for all platforms
runs-on: ubuntu-latest
needs: env
strategy:
matrix:
platform: [esp32, esp32s2, esp32s3]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: ${{ needs.env.outputs.esp_idf_version }}
target: ${{ matrix.platform }}
- name: Merge factory
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: ${{ needs.env.outputs.esp_idf_version }}
target: ${{ matrix.platform }}
command: esptool.py --chip ${{ matrix.platform }} merge_bin -o build/${{ matrix.platform }}-evse.factory.bin --flash_mode dio --flash_freq 40m --flash_size 4MB \
0x1000 build/bootloader/bootloader.bin \
0x10000 build/esp32-evse.bin \
0x8000 build/partition_table/partition-table.bin \
0xd000 build/ota_data_initial.bin
- name: Rename file bin
shell: bash
run: cp build/esp32-evse.bin ${{ matrix.platform }}-evse.bin
- name: Upload artifact bin
uses: actions/upload-artifact@v4
with:
name: firmware-${{ matrix.platform }}
path: ${{ matrix.platform }}-evse.bin
- name: Upload artifact factory
uses: actions/upload-artifact@v4
with:
name: factory-${{ matrix.platform }}
path: build/${{ matrix.platform }}-evse.factory.bin