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