|
7 | 7 | strategy: |
8 | 8 | fail-fast: false |
9 | 9 | matrix: |
10 | | - arduino-platform: ['metro_m0', 'hallowing', 'circuitplayground_m0', |
11 | | - 'metro_m4', 'pybadge_m4', 'pygamer_m4', 'hallowing_m4', 'pyportal_m4', 'pyportal_m4_titano'] |
| 10 | + board: |
| 11 | + # Alphabetical order |
| 12 | + - 'metro_m0' |
| 13 | + - 'hallowing' |
| 14 | + - 'circuitplayground_m0' |
| 15 | + - 'metro_m4' |
| 16 | + - 'pybadge_m4' |
| 17 | + - 'pygamer_m4' |
| 18 | + - 'hallowing_m4' |
| 19 | + - 'pyportal_m4' |
| 20 | + - 'pyportal_m4_titano' |
| 21 | + - 'feather_m4_can' |
| 22 | + - 'metro_m0:usbstack=tinyusb' |
| 23 | + - 'metro_m4:speed=120,usbstack=tinyusb' |
12 | 24 |
|
13 | 25 | runs-on: ubuntu-latest |
14 | 26 |
|
|
20 | 32 |
|
21 | 33 | - name: Checkout code |
22 | 34 | uses: actions/checkout@v2 |
| 35 | + with: |
| 36 | + submodules: 'true' |
23 | 37 |
|
24 | | - - name: Checkout submodules |
25 | | - shell: bash |
26 | | - run: | |
27 | | - auth_header="$(git config --local --get http.https://github.com/.extraheader)" |
28 | | - git submodule sync --recursive |
29 | | - git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive |
30 | | - |
31 | 38 | - name: Install Arduino CLI and Tools |
32 | 39 | run: | |
33 | 40 | # make all our directories we need for files and libraries |
|
42 | 49 | env: |
43 | 50 | BSP_URL: https://adafruit.github.io/arduino-board-index/package_adafruit_index.json |
44 | 51 | BSP_PATH: .arduino15/packages/adafruit/hardware/samd |
45 | | - LIB_DEPS: FlashStorage SD |
46 | 52 | run: | |
47 | 53 | arduino-cli config init |
48 | 54 | arduino-cli core update-index |
|
53 | 59 | BSP_VERSION=`eval ls $HOME/$BSP_PATH` |
54 | 60 | rm -r $HOME/$BSP_PATH/* |
55 | 61 | ln -s $GITHUB_WORKSPACE $HOME/$BSP_PATH/$BSP_VERSION |
56 | | - arduino-cli lib install $LIB_DEPS |
| 62 | + arduino-cli lib install "Adafruit NeoPixel" "Adafruit seesaw Library" "Adafruit SPIFlash" "FlashStorage" "MIDI Library" "SD" "SdFat - Adafruit Fork" |
57 | 63 |
|
58 | 64 | - name: Build examples |
59 | | - run: python3 extras/build_all.py ${{ matrix.arduino-platform }} |
60 | | - |
61 | | - # How to mark this as allowed-to-fail? |
62 | | - - name: Build examples (-Wall) |
63 | | - run: python3 extras/build_all.py --all_warnings --warnings_do_not_cause_job_failure |
| 65 | + run: python3 extras/build_all.py ${{ matrix.board }} |
0 commit comments