libs update #163
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: GitHub Actions CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install platformio | |
python --version | |
- name: Install submodules | |
run: | | |
git submodule update --init | |
- name: Setup template config files | |
run: | | |
cp /home/runner/work/solar_station/solar_station/secrets.ini.template /home/runner/work/solar_station/solar_station/secrets.ini | |
# - name: Setup tmate session | |
# uses: mxschmitt/action-tmate@v3 | |
- name: Static code analysis | |
run: platformio check --verbose --severity=high --skip-packages | |
- name: Run PlatformIO | |
run: platformio run -e solarstation | |
- name: Creating artifact from BIN file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: firmware_build_artifact_solarstation.bin | |
path: .pio/build/solarstation/firmware.bin |