Update main.yml
This commit is contained in:
parent
f93ca4f48c
commit
6ddff7547c
|
@ -1,40 +1,33 @@
|
||||||
name: Build PlatformIO Project
|
name: Build Project
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
|
||||||
- development
|
- development
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- development
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4 # Updated to a version compatible with Node.js 20
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Install PlatformIO CLI
|
- name: Install PlatformIO CLI
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install platformio
|
pip install platformio
|
||||||
|
|
||||||
- name: Cache PlatformIO packages
|
- name: Install PlatformIO Core
|
||||||
uses: actions/cache@v4 # Updated to a version compatible with Node.js 20
|
run: platformio update
|
||||||
with:
|
|
||||||
path: ~/.platformio
|
|
||||||
key: ${{ runner.os }}-platformio-${{ hashFiles('**/platformio.ini') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-platformio-
|
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: pio run
|
run: platformio run --environment pico
|
||||||
|
|
Loading…
Reference in New Issue