From fa36133e6358f1cef04b50ddb9d8a81be2798495 Mon Sep 17 00:00:00 2001 From: suwatchai Date: Sun, 10 Jul 2022 07:41:15 +0700 Subject: [PATCH] Update CI. --- .github/workflows/compile_library.yml | 47 ++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile_library.yml b/.github/workflows/compile_library.yml index c899da6e..c25ce862 100644 --- a/.github/workflows/compile_library.yml +++ b/.github/workflows/compile_library.yml @@ -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 " >> 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 @@ -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 + \ No newline at end of file