|
73 | 73 | - name: New boards check
|
74 | 74 | run: python3 -u ci_new_boards_check.py
|
75 | 75 | working-directory: tools
|
76 |
| - |
77 | 76 | - name: Build mpy-cross.static-raspbian
|
78 | 77 | run: make -C mpy-cross -j2 -f Makefile.static-raspbian
|
79 | 78 |
|
@@ -137,6 +136,7 @@ jobs:
|
137 | 136 | board:
|
138 | 137 | - "8086_commander"
|
139 | 138 | - "TG-Watch02A"
|
| 139 | + - "aloriumtech_evo_m51" |
140 | 140 | - "aramcon_badge_2019"
|
141 | 141 | - "arduino_mkr1300"
|
142 | 142 | - "arduino_mkrzero"
|
@@ -359,3 +359,86 @@ jobs:
|
359 | 359 | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
360 | 360 | AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
361 | 361 | if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
|
| 362 | + build-xtensa: |
| 363 | + runs-on: ubuntu-latest |
| 364 | + needs: test |
| 365 | + strategy: |
| 366 | + fail-fast: false |
| 367 | + matrix: |
| 368 | + board: |
| 369 | + - "espressif_saola_1_wroom" |
| 370 | + - "espressif_saola_1_wrover" |
| 371 | + |
| 372 | + steps: |
| 373 | + - name: Set up Python 3.8 |
| 374 | + uses: actions/setup-python@v1 |
| 375 | + with: |
| 376 | + python-version: 3.8 |
| 377 | + - uses: actions/checkout@v2 |
| 378 | + with: |
| 379 | + submodules: true |
| 380 | + fetch-depth: 0 |
| 381 | + - run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/* |
| 382 | + - run: git submodule sync |
| 383 | + - run: git submodule foreach git remote -v |
| 384 | + - run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/* |
| 385 | + - name: CircuitPython version |
| 386 | + run: git describe --dirty --tags |
| 387 | + - uses: actions/cache@v1 |
| 388 | + name: Fetch IDF tool cache |
| 389 | + id: idf-cache |
| 390 | + with: |
| 391 | + path: ${{ github.workspace }}/.idf_tools |
| 392 | + key: ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/esp32s2/esp-idf/HEAD') }} |
| 393 | + - name: Install IDF tools |
| 394 | + if: steps.idf-cache.outputs.cache-hit != 'true' |
| 395 | + run: | |
| 396 | + $IDF_PATH/tools/idf_tools.py --non-interactive install required |
| 397 | + $IDF_PATH/tools/idf_tools.py --non-interactive install cmake |
| 398 | + $IDF_PATH/tools/idf_tools.py --non-interactive install-python-env |
| 399 | + rm -rf $IDF_TOOLS_PATH/dist |
| 400 | + env: |
| 401 | + IDF_PATH: ${{ github.workspace }}/ports/esp32s2/esp-idf |
| 402 | + IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools |
| 403 | + - name: Install CircuitPython deps |
| 404 | + run: | |
| 405 | + source $IDF_PATH/export.sh |
| 406 | + pip install requests sh click setuptools awscli |
| 407 | + sudo apt-get install -y gettext ninja-build |
| 408 | + env: |
| 409 | + IDF_PATH: ${{ github.workspace }}/ports/esp32s2/esp-idf |
| 410 | + IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools |
| 411 | + - name: Versions |
| 412 | + run: | |
| 413 | + source $IDF_PATH/export.sh |
| 414 | + gcc --version |
| 415 | + xtensa-esp32s2-elf-gcc --version |
| 416 | + python3 --version |
| 417 | + ninja --version |
| 418 | + cmake --version |
| 419 | + shell: bash |
| 420 | + env: |
| 421 | + IDF_PATH: ${{ github.workspace }}/ports/esp32s2/esp-idf |
| 422 | + IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools |
| 423 | + - name: mpy-cross |
| 424 | + run: make -C mpy-cross -j2 |
| 425 | + - name: build |
| 426 | + run: | |
| 427 | + source $IDF_PATH/export.sh |
| 428 | + python3 -u build_release_files.py |
| 429 | + working-directory: tools |
| 430 | + shell: bash |
| 431 | + env: |
| 432 | + IDF_PATH: ${{ github.workspace }}/ports/esp32s2/esp-idf |
| 433 | + IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools |
| 434 | + BOARDS: ${{ matrix.board }} |
| 435 | + |
| 436 | + with: |
| 437 | + name: ${{ matrix.board }} |
| 438 | + path: bin/${{ matrix.board }} |
| 439 | + - name: Upload to S3 |
| 440 | + run: "[ -z \"$AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1" |
| 441 | + env: |
| 442 | + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
| 443 | + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
| 444 | + if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')) |
0 commit comments