btclock_v2/.github/workflows/workflow.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

name: BTClock CI
2023-08-29 13:35:33 +00:00
on: [push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
2023-08-29 13:35:33 +00:00
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
2023-08-29 13:36:16 +00:00
cache: yarn
2023-08-29 13:37:22 +00:00
cache-dependency-path: '**/yarn.lock'
2023-08-29 13:35:33 +00:00
- 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: Build BTClock firmware
2023-08-29 13:35:33 +00:00
run: pio run -e esp32wemos-s3-mini_BW
- name: Build BTClock filesystem
run: pio run -e esp32wemos-s3-mini_BW --target buildfs
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: |
.pio/build/esp32wemos-s3-mini_BW/*.bin
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "*.bin"