Update README.md #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile Project | |
# The workflow will run on every push and pull request to the repository | |
on: | |
workflow_dispatch: | |
# (optional) Run workflow when pushing on master/main | |
push: | |
pull_request: | |
branches: ["main"] | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
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.11' | |
- name: Install PlatformIO Core | |
run: pip install --upgrade platformio | |
- name: Build PlatformIO Project | |
run: pio run | |
- name: Archive ESP32 Firmware | |
uses: actions/upload-artifact@v4 | |
with: | |
name: esp32-divoom | |
path: .pio/build/esp32dev/*.bin |