mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 05:06:39 +01:00
89 lines
2.6 KiB
YAML
89 lines
2.6 KiB
YAML
name: Release binarys
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cache/pip
|
|
~/.platformio/.cache
|
|
key: ${{ runner.os }}-pio
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.9'
|
|
|
|
- name: Install PlatformIO Core
|
|
run: pip install --upgrade platformio
|
|
|
|
- name: Install esptool
|
|
run: pip install esptool
|
|
|
|
- name: Build firmware for ESP32
|
|
run: |
|
|
cd ESP32_AP-Flasher
|
|
pio run --environment Simple_AP
|
|
|
|
- name: Build filesystem for ESP32
|
|
run: |
|
|
cd ESP32_AP-Flasher
|
|
pio run --target buildfs --environment Simple_AP
|
|
|
|
- name: Build firmware for ESP32-S2
|
|
run: |
|
|
cd ESP32_AP-Flasher
|
|
pio run --environment OpenEPaperLink_Mini_AP
|
|
|
|
- name: Build filesystem for ESP32-S2
|
|
run: |
|
|
cd ESP32_AP-Flasher
|
|
pio run --target buildfs --environment OpenEPaperLink_Mini_AP
|
|
|
|
- name: Build firmware for ESP32-S3
|
|
run: |
|
|
cd ESP32_AP-Flasher
|
|
pio run --environment OpenEPaperLink_AP_and_Flasher
|
|
|
|
- name: Build filesystem for ESP32-S3
|
|
run: |
|
|
cd ESP32_AP-Flasher
|
|
pio run --target buildfs --environment OpenEPaperLink_AP_and_Flasher
|
|
|
|
- name: Add ESP32 binary to release
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: ESP32_AP-Flasher/.pio/build/Simple_AP/firmware.bin
|
|
asset_name: ESP32firmware.bin
|
|
tag: ${{ github.ref }}
|
|
overwrite: true
|
|
body: "ESP32 firmware binary"
|
|
|
|
- name: Add ESP32-S2 binary to release
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: ESP32_AP-Flasher/.pio/build/OpenEPaperLink_Mini_AP/firmware.bin
|
|
asset_name: ESP32S2firmware.bin
|
|
tag: ${{ github.ref }}
|
|
overwrite: true
|
|
body: "ESP32 firmware binary"
|
|
|
|
- name: Add ESP32-S3 binary to release
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: ESP32_AP-Flasher/.pio/build/OpenEPaperLink_AP_and_Flasher/firmware.bin
|
|
asset_name: ESP32S3firmware.bin
|
|
tag: ${{ github.ref }}
|
|
overwrite: true
|
|
body: "ESP32 firmware binary"
|