Skip to content

Change icons for HAST #59

Change icons for HAST

Change icons for HAST #59

Workflow file for this run

name: Build
on:
push:
branches:
- master
- devel
# tags:
# - "v*"
# pull_request:
# types: [ open, synchronize, edited, reopened, closed ]
jobs:
build:
name: Build bins for ${{ matrix.pio_env }}
strategy:
# Ensure that a wheel builder finishes even if another fails
fail-fast: false
matrix:
pio_env: ['lcd_ssd1306', 'd32_pro_tft', 'tft_espi', 'm5stickc_plus']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- run: git fetch --prune --unshallow
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v4
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v5
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Build all environments
run: |
pio run -e ${{ matrix.pio_env }}
pio run -e ${{ matrix.pio_env }} --target buildfs
# sh ./copy_bins.sh
- name: Copy files
run: |
cp .pio/build/${{ matrix.pio_env }}/firmware.bin bin/${{ matrix.pio_env }}_firmware.bin
cp .pio/build/${{ matrix.pio_env }}/partitions.bin bin/${{ matrix.pio_env }}_partitions.bin
cp .pio/build/${{ matrix.pio_env }}/spiffs.bin bin/${{ matrix.pio_env }}_spiffs.bin
# - name: "Create Prerelease"
# uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# prerelease: true
# files: |
# LICENSE
# bin/*.bin
- name: Create Draft Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
body: "Draft release"
# note you'll typically need to create a personal access token
# with permissions to create releases in the other repo
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
prerelease: true
files: |
LICENSE
bin/*.bin
env:
GITHUB_REPOSITORY: thorrak/tiltbridge