Set platform version #595
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 | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
# branches: [ "main" ] | |
# pull_request: | |
# branches: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
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.9' | |
- name: Install PlatformIO Core | |
run: cd sensor; pip install --upgrade platformio | |
- uses: "finnp/create-file-action@master" | |
env: | |
FILE_NAME: "sensor/src/wifi_secrets.h" | |
FILE_BASE64: "I2RlZmluZSBTRUNSRVRfU1NJRCAidGVzdCIKI2RlZmluZSBTRUNSRVRfUFNLICJ0ZXN0Igo=" | |
- name: Build PlatformIO Project | |
run: cd sensor; pio run |