@@ -10,16 +10,11 @@ jobs:
1010 pre-commit :
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Setup Python
14- uses : actions/setup-python@v5
15- with :
16- python-version : ' 3.x'
17-
1813 - name : Checkout code
1914 uses : actions/checkout@v4
2015
2116 - name : Run pre-commit
22- uses :
pre-commit/[email protected] .0 17+ uses :
pre-commit/[email protected] .1 2318
2419 - name : Checkout adafruit/ci-arduino
2520 uses : actions/checkout@v4
@@ -60,18 +55,14 @@ jobs:
6055 - ' metro_m4_tinyusb'
6156
6257 steps :
63- - name : Setup Python
64- uses : actions/setup-python@v5
65- with :
66- python-version : ' 3.x'
67-
6858 - name : Checkout code
6959 uses : actions/checkout@v4
7060
7161 - name : Checkout adafruit/ci-arduino
7262 uses : actions/checkout@v4
7363 with :
7464 repository : adafruit/ci-arduino
65+ ref : importable-build_platform
7566 path : ci
7667
7768 - name : pre-install
@@ -83,23 +74,20 @@ jobs:
8374 - name : test platforms
8475 run : python3 ci/build_platform.py ${{ matrix.arduino-platform }}
8576
86- build-esp32-stable :
77+ build-esp32-v2 :
78+ if : false
8779 runs-on : ubuntu-latest
8880 needs : pre-commit
8981 strategy :
9082 fail-fast : false
9183 matrix :
9284 arduino-platform :
93- # ESP32
9485 - ' feather_esp32s2'
9586 - ' feather_esp32s3'
87+ esp32-version :
88+ - ' 2.0.17'
9689
9790 steps :
98- - name : Setup Python
99- uses : actions/setup-python@v5
100- with :
101- python-version : ' 3.x'
102-
10391 - name : Checkout code
10492 uses : actions/checkout@v4
10593
@@ -113,21 +101,23 @@ jobs:
113101 - name : pre-install
114102 run : bash ci/actions_install.sh
115103
116- - name : Install arduino-esp32 stable and Libraries
104+ - name : Install arduino-esp32 v2 and Libraries
117105 env :
118106 BSP_URLS : https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
119107 run : |
120- arduino-cli core install esp32:esp32 --additional-urls $BSP_URLS
108+ arduino-cli core install esp32:esp32@${{ matrix.esp32-version }} --additional-urls $BSP_URLS
121109 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"
122110 arduino-cli core list
123111 arduino-cli lib list
124112
125113 - name : Create custom build script
126114 working-directory : ${{ github.workspace }}/ci
127115 run : |
128- echo 'import build_platform' > build_esp32_stable.py
129- echo 'build_platform.test_examples_in_folder("'${{ matrix.arduino-platform }}'")' >> build_esp32_v2.py
116+ echo 'import build_platform' > build_esp32_v2.py
117+ echo 'build_platform.test_examples_in_folder("'${{ matrix.arduino-platform }}'", build_platform.BUILD_DIR)' >> build_esp32_v2.py
118+ echo 'exit(build_platform.success)' >> build_esp32_v2.py
119+ cat build_esp32_v2.py
130120
131121 - name : test platforms
132122 run : |
133- python3 ci/build_esp32_stable .py
123+ python3 ci/build_esp32_v2 .py
0 commit comments