Skip to content

Commit

Permalink
Update CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Jul 10, 2022
1 parent 9ed2e33 commit fa36133
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion .github/workflows/compile_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,51 @@ on:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
- "d1_mini"
- "nodemcuv2"
- "esp32dev"
- "lolin32"
- "mkrwifi1010"
- "bluepill_f103c8_128k"
- "mkr1000USB"
- "teensy36"
- "teensy41"
steps:
- uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Create main file
run: |
echo "#include <Arduino.h>" >> src/main.ino
echo "void setup() {}" >> src/main.ino
echo "void loop() {}" >> src/main.ino
- name: Run PlatformIO
run: pio ci --board=${{ matrix.board }} src


build2:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -57,4 +101,5 @@ jobs:
echo "void loop() {}" >> src/main.ino
- name: Run PlatformIO
run: pio ci --board=${{ matrix.board }} src
run: pio ci --project-option="lib_ldf_mode=chain+" --board=nanorp2040connect src

0 comments on commit fa36133

Please sign in to comment.