ahoy/.github/workflows/compile_esp8266.yml
2022-08-07 19:58:22 +02:00

49 lines
1.4 KiB
YAML

name: ESP8266
on:
push:
branches:
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
- '!main' # excludes master
paths-ignore:
- '**.md' # Do no build on *.md changes
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v3
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Update html
working-directory: tools/esp8266/html
run: python convert.py
- name: Run PlatformIO
run: pio run -d tools/esp8266
- name: rename
working-directory: tools/esp8266/helpers
run: python getVersion.py
- uses: actions/upload-artifact@v3
with:
name: esp8266
path: tools/esp8266/.pio/build/d1_mini/out