Skip to content

Commit c7fcb49

Browse files
authored
Merge branch 'main' into update-aio-temp-pix
2 parents d811541 + 56e39c7 commit c7fcb49

2,393 files changed

Lines changed: 260734 additions & 7559 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/arduino_cron.yml

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
name: Arduino Library CI
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
8+
9+
jobs:
10+
check-if-needed:
11+
runs-on: ubuntu-latest
12+
outputs:
13+
answer: ${{ steps.is-needed.outputs.answer }}
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 2
18+
- name: Check if run by adabot
19+
id: check-cron
20+
run: |
21+
iscron=false
22+
[[ "${{ github.event_name }}" == "push" && "${{ github.actor }}" == "adafruit-adabot" ]] && iscron=true
23+
echo "status=$iscron" >> "$GITHUB_OUTPUT"
24+
- name: Check if dispatched
25+
id: check-dispatch
26+
run: |
27+
isdispatch=false
28+
[[ "${{ github.event_name }}" == "workflow_dispatch" ]] && isdispatch=true
29+
echo "status=$isdispatch" >> "$GITHUB_OUTPUT"
30+
- name: Check for Arduino file updates
31+
id: check-updated
32+
if: ${{ steps.check-cron.outputs.status }} == false && ${{ steps.check-dispatch.outputs.status }} == false
33+
run: |
34+
changedfiles=$(git diff --name-only -r HEAD^1 HEAD)
35+
ischanged=false
36+
for changedfile in ${changedfiles[*]}; do
37+
echo $changedfile
38+
if [[ $changedfile == *.c ]] ||
39+
[[ $changedfile == *.cpp ]] ||
40+
[[ $changedfile == *.h ]] ||
41+
[[ $changedfile == *.hpp ]] ||
42+
[[ $changedfile == *.ino ]]; then
43+
ischanged=true
44+
break
45+
fi
46+
done
47+
echo "status=$ischanged" >> "$GITHUB_OUTPUT"
48+
- name: Output Arduino needed
49+
id: is-needed
50+
run: |
51+
isneeded=false
52+
if [[ ${{ steps.check-cron.outputs.status }} == true ]] ||
53+
[[ ${{ steps.check-dispatch.outputs.status }} == true ]] ||
54+
[[ ${{ steps.check-updated.outputs.status }} == true ]]; then
55+
isneeded=true
56+
fi
57+
echo "answer=$isneeded" >> "$GITHUB_OUTPUT"
58+
59+
arduino:
60+
strategy:
61+
fail-fast: false
62+
matrix:
63+
arduino-platform: ["cpb", "cpc", "cpx_ada", "esp32", "esp8266", "feather32u4", "feather_m0_express", "feather_m4_express", "feather_rp2040", "flora", "funhouse", "gemma", "gemma_m0", "hallowing_m0", "hallowing_m4_tinyusb", "magtag", "metro_m0", "metro_m0_tinyusb", "metro_m4", "metro_m4_tinyusb", "monster_m4sk", "monster_m4sk_tinyusb", "neokeytrinkey_m0", "neotrellis_m4", "nrf52832", "nrf52840", "protrinket_5v", "proxlighttrinkey_m0", "pybadge", "pygamer", "pyportal", "qualia_s3_rgb666", "qt2040_trinkey", "qtpy_m0", "qtpy_esp32s2", "rotarytrinkey_m0", "slidetrinkey_m0", "trinket_m0", "uno", "trinket_5v", "ledglasses_nrf52840" ]
64+
runs-on: ubuntu-latest
65+
if: needs.check-if-needed.outputs.answer == 'true'
66+
needs: check-if-needed
67+
steps:
68+
- uses: actions/setup-python@v4
69+
with:
70+
python-version: "3.x"
71+
- uses: actions/checkout@v3
72+
- uses: actions/checkout@v3
73+
with:
74+
repository: adafruit/ci-arduino
75+
path: ci
76+
77+
- name: pre-install
78+
run: bash ci/actions_install.sh
79+
80+
# manually install some libraries
81+
- name: extra libraries
82+
run: |
83+
git clone --quiet https://github.com/adafruit/Cryptosuite.git /home/runner/Arduino/libraries/Cryptosuite
84+
git clone --quiet https://github.com/adafruit/WiFiNINA.git /home/runner/Arduino/libraries/WiFiNINA
85+
git clone --quiet https://github.com/adafruit/Adafruit_LSM303.git /home/runner/Arduino/libraries/Adafruit_LSM303
86+
git clone --quiet https://github.com/moderndevice/CapSense.git /home/runner/Arduino/libraries/CapSense
87+
git clone --quiet https://github.com/PaintYourDragon/ffft.git /home/runner/Arduino/libraries/ffft
88+
git clone --quiet https://github.com/adafruit/RadioHead.git /home/runner/Arduino/libraries/RadioHead
89+
git clone --quiet https://github.com/me-no-dev/ESPAsyncTCP /home/runner/Arduino/libraries/ESPAsyncTCP
90+
git clone --quiet https://github.com/adafruit/Talkie /home/runner/Arduino/libraries/Talkie
91+
git clone --quiet https://github.com/Infineon/arduino-optiga-trust-m /home/runner/Arduino/libraries/arduinoOptigaTrustM
92+
git clone --quiet https://github.com/adafruit/HID /home/runner/Arduino/libraries/HID_Project
93+
rm -rf /home/runner/Arduino/libraries/ArduinoHttpClient
94+
git clone --quiet https://github.com/arduino-libraries/ArduinoHttpClient.git /home/runner/Arduino/libraries/ArduinoHttpClient
95+
96+
- name: test platforms
97+
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
98+
99+
100+
- name: Upload build artifacts
101+
uses: actions/upload-artifact@v3
102+
with:
103+
name: ${{ github.event.repository.name }}.${{ github.sha }}
104+
path: |
105+
build/*.hex
106+
build/*.bin
107+
build/*.uf2
108+
109+
- name: Zip release files
110+
if: startsWith(github.ref, 'refs/tags/')
111+
run: |
112+
if [ -d build ]; then
113+
(
114+
echo "Built from Adafruit Learning System Guides `git describe --tags` for ${{ matrix.arduino-platform }}"
115+
echo "Source code: https://github.com/adafruit/"
116+
echo "Adafruit Learning System: https://learn.adafruit.com/"
117+
) > build/README.txt
118+
cd build && zip -9 -o ${{ matrix.arduino-platform }}.zip *.hex *.bin *.uf2 *.txt
119+
fi
120+
121+
- name: Create release
122+
if: startsWith(github.ref, 'refs/tags/')
123+
uses: softprops/action-gh-release@v1
124+
with:
125+
files: build/${{ matrix.arduino-platform }}.zip
126+
fail_on_unmatched_files: false
127+
body: "Select the zip file corresponding to your board from the list below."

.github/workflows/githubci.yml

Lines changed: 7 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,35 @@
1-
name: Arduino Library CI
1+
name: SPDX and Pylint
22

33
on: [pull_request, push, repository_dispatch]
44

55
jobs:
66
spdx:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/setup-python@v2
9+
- uses: actions/setup-python@v4
1010
with:
1111
python-version: "3.x"
1212
- name: Checkout Current Repo
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414

1515
- name: check SPDX licensing
1616
run: python ./SPDX.py
1717

18-
arduino:
19-
strategy:
20-
fail-fast: false
21-
matrix:
22-
arduino-platform: ["cpb", "cpc", "cpx_ada", "esp32", "esp8266", "feather32u4", "feather_m0_express", "feather_m4_express", "feather_rp2040", "flora", "funhouse", "gemma", "gemma_m0", "hallowing_m0", "hallowing_m4_tinyusb", "magtag", "metro_m0", "metro_m0_tinyusb", "metro_m4", "metro_m4_tinyusb", "monster_m4sk", "monster_m4sk_tinyusb", "neokeytrinkey_m0", "neotrellis_m4", "nrf52832", "nrf52840", "protrinket_5v", "proxlighttrinkey_m0", "pybadge", "pygamer", "pyportal", "qt2040_trinkey", "qtpy_m0", "qtpy_esp32s2", "rotarytrinkey_m0", "slidetrinkey_m0", "trinket_m0", "uno", "trinket_5v", "ledglasses_nrf52840" ]
23-
runs-on: ubuntu-latest
24-
25-
steps:
26-
- uses: actions/setup-python@v2
27-
with:
28-
python-version: "3.x"
29-
- uses: actions/checkout@v2
30-
- uses: actions/checkout@v2
31-
with:
32-
repository: adafruit/ci-arduino
33-
path: ci
34-
35-
- name: pre-install
36-
run: bash ci/actions_install.sh
37-
38-
# manually install some libraries
39-
- name: extra libraries
40-
run: |
41-
git clone --quiet https://github.com/adafruit/Cryptosuite.git /home/runner/Arduino/libraries/Cryptosuite
42-
git clone --quiet https://github.com/adafruit/WiFiNINA.git /home/runner/Arduino/libraries/WiFiNINA
43-
git clone --quiet https://github.com/adafruit/Adafruit_LSM303.git /home/runner/Arduino/libraries/Adafruit_LSM303
44-
git clone --quiet https://github.com/moderndevice/CapSense.git /home/runner/Arduino/libraries/CapSense
45-
git clone --quiet https://github.com/PaintYourDragon/ffft.git /home/runner/Arduino/libraries/ffft
46-
git clone --quiet https://github.com/adafruit/RadioHead.git /home/runner/Arduino/libraries/RadioHead
47-
git clone --quiet https://github.com/me-no-dev/ESPAsyncTCP /home/runner/Arduino/libraries/ESPAsyncTCP
48-
git clone --quiet https://github.com/adafruit/Talkie /home/runner/Arduino/libraries/Talkie
49-
git clone --quiet https://github.com/Infineon/arduino-optiga-trust-m /home/runner/Arduino/libraries/arduinoOptigaTrustM
50-
git clone --quiet https://github.com/adafruit/HID /home/runner/Arduino/libraries/HID_Project
51-
52-
- name: test platforms
53-
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
54-
55-
56-
- name: Upload build artifacts
57-
uses: actions/upload-artifact@v2
58-
with:
59-
name: ${{ github.event.repository.name }}.${{ github.sha }}
60-
path: |
61-
build/*.hex
62-
build/*.bin
63-
build/*.uf2
64-
65-
- name: Zip release files
66-
if: startsWith(github.ref, 'refs/tags/')
67-
run: |
68-
if [ -d build ]; then
69-
(
70-
echo "Built from Adafruit Learning System Guides `git describe --tags` for ${{ matrix.arduino-platform }}"
71-
echo "Source code: https://github.com/adafruit/"
72-
echo "Adafruit Learning System: https://learn.adafruit.com/"
73-
) > build/README.txt
74-
cd build && zip -9 -o ${{ matrix.arduino-platform }}.zip *.hex *.bin *.uf2 *.txt
75-
fi
76-
77-
- name: Create release
78-
if: startsWith(github.ref, 'refs/tags/')
79-
uses: softprops/action-gh-release@v1
80-
with:
81-
files: build/${{ matrix.arduino-platform }}.zip
82-
fail_on_unmatched_files: false
83-
body: "Select the zip file corresponding to your board from the list below."
84-
8518
pylint:
8619
runs-on: ubuntu-latest
8720
steps:
88-
- name: Set up Python 3.x
89-
uses: actions/setup-python@v1
21+
- name: Set up Python 3.10
22+
uses: actions/setup-python@v4
9023
with:
91-
python-version: "3.x"
24+
python-version: "3.10"
9225
- name: Versions
9326
run: |
9427
python3 --version
9528
- name: Pip install pylint
9629
run: |
9730
pip install --force-reinstall pylint==2.7.1
9831
- name: Checkout Current Repo
99-
uses: actions/checkout@v2
32+
uses: actions/checkout@v3
10033

10134
- name: lint
10235
run: ./pylint_check.sh

.github/workflows/images.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@ on:
88
branches: [main]
99

1010
concurrency:
11-
group: folder-images
11+
group: folder-images-concurrency # https://github.com/adafruit/Adafruit_Learning_System_Guides/issues/2327
1212
cancel-in-progress: true
1313

1414
jobs:
1515
update-images:
16+
if: github.repository_owner == 'adafruit'
1617
runs-on: ubuntu-latest
1718
steps:
1819
- name: Dump GitHub context
1920
env:
2021
GITHUB_CONTEXT: ${{ toJson(github) }}
2122
run: echo "$GITHUB_CONTEXT"
2223

23-
- uses: actions/checkout@v2.2.0
24+
- uses: actions/checkout@v3
2425

2526
- name: Set up Python 3.x
26-
uses: actions/setup-python@v1
27+
uses: actions/setup-python@v4
2728
with:
2829
python-version: "3.x"
2930

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Hue_Controller/secrets.h
55
CircuitPython_Logger/secrets\.py
66
.python-version
77
__pycache__
8+
*.swp

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme
7272

7373
# Template used to display messages. This is a python new-style format string
7474
# used to format the message information. See doc for all details
75-
msg-template='{path} {line}: {msg} ({symbol})'
75+
msg-template='{path}:{line}: {msg} ({symbol})'
7676

7777
# Set the output format. Available formats are text, parseable, colorized, json
7878
# and msvs (visual studio).You can also give a reporter class, eg

2020_shake/.metro_m4.test.only renamed to 16bit_hello_picowbell_dvi/.feather_rp2040.test.only

File renamed without changes.

0 commit comments

Comments
 (0)