Update main.yml

This commit is contained in:
Justin Bland 2024-05-29 11:10:52 +10:00 committed by GitHub
parent f93ca4f48c
commit 6ddff7547c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 22 deletions

View File

@ -1,25 +1,23 @@
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'
@ -28,13 +26,8 @@ jobs:
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