Skip to content

Commit b061851

Browse files
authored
Create platformio.yml
1 parent 71fbee3 commit b061851

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/platformio.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PlatformIO Build Check for microros
2+
3+
on:
4+
push:
5+
branches:
6+
- microros # Trigger only on pushes to the microros branch
7+
pull_request:
8+
branches:
9+
- microros # Trigger only on pull requests targeting the microros branch
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# Checkout the repository
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
# Set up Python environment
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: 3.10 # Replace with a compatible version for PlatformIO
25+
26+
# Install PlatformIO
27+
- name: Install PlatformIO
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install platformio
31+
32+
# Build the project
33+
- name: Build with PlatformIO
34+
run: |
35+
platformio run

0 commit comments

Comments
 (0)