Skip to content

Refactor: Cleaned the code #2

Refactor: Cleaned the code

Refactor: Cleaned the code #2

Workflow file for this run

name: PlatformIO CI
on:
push:
branches:
- main
pull_request_target:
jobs:
get_default_envs:
name: Build Project
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install platformio
pip install wheel
- name: Cache PlatformIO
uses: actions/cache@v4
with:
path: ~/.platformio
key: ${{ runner.os }}-platformio
- name: Build Project
run: pio run
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: .pio/build/**/firmware.hex