Skip to content

Commit 130f322

Browse files
committed
use martix for ci
1 parent 9d994de commit 130f322

File tree

1 file changed

+37
-3
lines changed

1 file changed

+37
-3
lines changed

.github/workflows/githubci.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,21 @@ on: [pull_request, push, repository_dispatch]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
arduino-platform:
12+
- 'uno'
13+
- 'leonardo'
14+
- 'atmega2560'
15+
- 'esp8266'
16+
- 'esp32'
17+
- 'trinket_m0'
18+
- 'cpb'
19+
- 'cpx'
20+
- 'metro_m0'
21+
- 'metro_m4_tinyusb'
22+
923
steps:
1024
- uses: actions/setup-python@v1
1125
with:
@@ -26,10 +40,30 @@ jobs:
2640
git clone --quiet https://github.com/adafruit/Adafruit_SPIFlash.git /home/runner/Arduino/libraries/Adafruit_SPIFlash
2741
2842
- name: test platforms
29-
run: python3 ci/build_platform.py main_platforms metro_m4_tinyusb cpb cpx
43+
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
44+
45+
clang_and_doxy:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Setup Python
49+
uses: actions/setup-python@v1
50+
with:
51+
python-version: '3.x'
52+
53+
- name: Checkout code
54+
uses: actions/checkout@v2
55+
56+
- name: Checkout adafruit/ci-arduino
57+
uses: actions/checkout@v2
58+
with:
59+
repository: adafruit/ci-arduino
60+
path: ci
61+
62+
- name: pre-install
63+
run: bash ci/actions_install.sh
3064

3165
- name: clang
32-
run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r .
66+
run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r .
3367

3468
- name: doxygen
3569
env:

0 commit comments

Comments
 (0)