Skip to content

Commit

Permalink
Run platform io build on multiple OSs
Browse files Browse the repository at this point in the history
  • Loading branch information
ToMe25 authored Jan 11, 2024
1 parent e7f185e commit 0407a47
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/pio.yml → .github/workflows/pio_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,25 @@ on:
paths:
- src/**
- lib/**
- test/**
- include/**
- platformio.ini
- .github/workflows/pio.yml
- .github/workflows/pio_build.yml
pull_request:
branches: [ master ]
branches:
- master
workflow_dispatch:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
name: Platform IO build ${{ matrix.os == 'ubuntu-latest' && 'all' || 'some' }}(${{ matrix.os }})
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -46,5 +55,10 @@ jobs:
echo "MQTT Username" > mqttuser.txt
echo "MQTT Password" > mqttpass.txt
- name: Run Platform IO builds
- name: Platform IO build all
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pio run

- name: Platform IO build some
if: ${{ matrix.os != 'ubuntu-latest' }}
run: pio run -e esp32dev -e esp_wroom_02

0 comments on commit 0407a47

Please sign in to comment.