Update ota-release.yml #148
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: PlatformIO CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio/.cache | |
key: ${{ runner.os }}-pio | |
- uses: actions/[email protected] | |
with: | |
python-version: '3.9' | |
- name: Install Python packages | |
run: | | |
pip install --upgrade platformio | |
pip install --upgrade cryptography | |
- name: Create header files | |
run: | | |
cp "${GITHUB_WORKSPACE}/.github/workflows/dummy_priv_key.pem" "${GITHUB_WORKSPACE}/priv_key.pem" | |
cp "${GITHUB_WORKSPACE}/noisemeter-device/config.h.example" "${GITHUB_WORKSPACE}/noisemeter-device/config.h" | |
python "${GITHUB_WORKSPACE}/noisemeter-device/certs.py" -s api.tracket.info > "${GITHUB_WORKSPACE}/noisemeter-device/certs.h" | |
- name: Build PlatformIO Project (esp32-pcb) | |
run: pio run -e esp32-pcb | |
- name: Build PlatformIO Project (esp32-breadboard) | |
run: pio run -e esp32-breadboard |