Skip to content

Commit e6d15a2

Browse files
committed
update ci to also build with arduino-esp32 stable
1 parent a8aae07 commit e6d15a2

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

.github/workflows/githubci.yml

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
fail-fast: false
4747
matrix:
4848
arduino-platform:
49-
# ESP32
49+
# ESP32 ci use dev json
5050
- 'feather_esp32s2'
5151
- 'feather_esp32s3'
5252
# nRF52
@@ -82,3 +82,51 @@ jobs:
8282

8383
- name: test platforms
8484
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
85+
86+
build-esp32-stable:
87+
runs-on: ubuntu-latest
88+
needs: pre-commit
89+
strategy:
90+
fail-fast: false
91+
matrix:
92+
arduino-platform:
93+
# ESP32
94+
- 'feather_esp32s2'
95+
- 'feather_esp32s3'
96+
97+
steps:
98+
- name: Setup Python
99+
uses: actions/setup-python@v5
100+
with:
101+
python-version: '3.x'
102+
103+
- name: Checkout code
104+
uses: actions/checkout@v4
105+
106+
- name: Checkout adafruit/ci-arduino
107+
uses: actions/checkout@v4
108+
with:
109+
repository: adafruit/ci-arduino
110+
ref: importable-build_platform
111+
path: ci
112+
113+
- name: pre-install
114+
run: bash ci/actions_install.sh
115+
116+
- name: Install arduino-esp32 stable and Libraries
117+
env:
118+
BSP_URLS: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
119+
run: |
120+
arduino-cli core install esp32:esp32 --additional-urls $BSP_URLS
121+
arduino-cli lib install "Adafruit SPIFlash" "MIDI Library" "Adafruit seesaw Library" "Adafruit NeoPixel" "SdFat - Adafruit Fork" "SD" "Adafruit Circuit Playground" "Adafruit InternalFlash" "Pico PIO USB"
122+
123+
- name: Create custom build script
124+
with:
125+
working-directory: ${{ github.workspace }}/ci
126+
run: |
127+
echo 'import build_platform' > build_esp32_stable.py
128+
echo 'build_platform.test_examples_in_folder("'${{ matrix.arduino-platform }}'")' >> build_esp32_v2.py
129+
130+
- name: test platforms
131+
run: |
132+
python3 ci/build_esp32_stable.py

0 commit comments

Comments
 (0)