Skip to content

update action warning #13

update action warning

update action warning #13

name: build
on:
push:
branches:
- main
tags:
- "m5dial-simple-pointer/*"
- "m5stackcore2-simple-pointer/*"
- "m5dial-pimoroni-trackball-compatible/*"
pull_request:
permissions:
contents: write
jobs:
build-m5dial-simple-pointer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build
run: |
cd m5dial-simple-pointer
cp src/ssid.h.template src/ssid.h
pio run
./build-merged-firmware.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/m5dial-simple-pointer')
with:
files: |
m5dial-simple-pointer.bin
body: |
```
esptool.py --chip esp32s3 write_flash -z 0 m5dial-simple-pointer.bin
```
build-m5stackcore2-simple-pointer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build
run: |
cd m5stackcore2-simple-pointer
pio run
./build-merged-firmware.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/m5stackcore2-simple-pointer')
with:
files: |
m5stackcore2-simple-pointer.bin
body: |
```
esptool.py --chip esp32 write_flash -z 0 m5stackcore2-simple-pointer.bin
```
build-m5dial-pimoroni-trackball-compatible:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build
run: |
cd m5dial-pimoroni-trackball-compatible
pio run
./build-merged-firmware.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/m5dial-pimoroni-trackball-compatible')
with:
files: |
m5dial-pimoroni-trackball-compatible.bin
body: |
```
esptool.py --chip esp32s3 write_flash -z 0 m5dial-pimoroni-trackball-compatible.bin
```