@@ -242,7 +242,7 @@ jobs:
242242 zip -9r circuitpython-stubs.zip circuitpython-stubs
243243 [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp circuitpython-stubs/dist/*.tar.gz s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-${{ env.CP_VERSION }}.zip --no-progress --region us-east-1
244244 - name : Upload stubs to PyPi
245- if : github.event_name == 'push' && github.ref == 'refs/heads/main ' && github.repository_owner == 'adafruit'
245+ if : ( github.event_name == 'push' && github.ref == 'refs/heads/foamyguy_test_stubs ' && github.repository_owner == 'foamyguy' || (github.event_name == 'release') && (github.event.action == 'published' || github.event.action == 'rerequested'))
246246 env :
247247 TWINE_USERNAME : ${{ secrets.pypi_username }}
248248 TWINE_PASSWORD : ${{ secrets.pypi_password }}
@@ -252,193 +252,193 @@ jobs:
252252 [ -z "$TWINE_USERNAME" ] || twine upload circuitpython-stubs/dist/*
253253
254254
255- build-arm :
256- runs-on : ubuntu-20.04
257- needs : test
258- strategy :
259- fail-fast : false
260- matrix :
261- board : ${{ fromJSON(needs.test.outputs.boards-arm) }}
262- if : ${{ needs.test.outputs.boards-arm != '[]' }}
263- steps :
264- - name : Set up Python 3.8
265- uses : actions/setup-python@v1
266- with :
267- python-version : 3.8
268- - uses : actions/checkout@v2.2.0
269- with :
270- submodules : true
271- fetch-depth : 0
272- - name : Fetch tags
273- run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
274- - name : Install dependencies
275- run : |
276- sudo apt-get install -y gettext
277- pip install -r requirements-ci.txt -r requirements-dev.txt
278- wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
279- sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
280- - name : Versions
281- run : |
282- gcc --version
283- arm-none-eabi-gcc --version
284- python3 --version
285- - name : mpy-cross
286- run : make -C mpy-cross -j2
287- - name : Setup build failure matcher
288- run : echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
289- - name : build
290- run : python3 -u build_release_files.py
291- working-directory : tools
292- env :
293- BOARDS : ${{ matrix.board }}
294- - uses : actions/upload-artifact@v2
295- with :
296- name : ${{ matrix.board }}
297- path : bin/${{ matrix.board }}
298- - name : Upload to S3
299- run : " [ -z \" $AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
300- env :
301- AWS_PAGER : ' '
302- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
303- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
304- if : (github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
305-
306-
307- build-riscv :
308- runs-on : ubuntu-20.04
309- needs : test
310- strategy :
311- fail-fast : false
312- matrix :
313- board : ${{ fromJSON(needs.test.outputs.boards-riscv) }}
314- if : ${{ needs.test.outputs.boards-riscv != '[]' }}
315- steps :
316- - name : Set up Python 3.8
317- uses : actions/setup-python@v1
318- with :
319- python-version : 3.8
320- - uses : actions/checkout@v2.2.0
321- with :
322- submodules : true
323- fetch-depth : 0
324- - name : Fetch tags
325- run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
326- - name : Install dependencies
327- run : |
328- sudo apt-get install -y gettext
329- pip install -r requirements-ci.txt -r requirements-dev.txt
330- wget https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-centos6.tar.gz
331- sudo tar -C /usr --strip-components=1 -xaf riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-centos6.tar.gz
332- - name : Versions
333- run : |
334- gcc --version
335- riscv64-unknown-elf-gcc --version
336- python3 --version
337- - name : mpy-cross
338- run : make -C mpy-cross -j2
339- - name : Setup build failure matcher
340- run : echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
341- - name : build
342- run : python3 -u build_release_files.py
343- working-directory : tools
344- env :
345- BOARDS : ${{ matrix.board }}
346- - uses : actions/upload-artifact@v2
347- with :
348- name : ${{ matrix.board }}
349- path : bin/${{ matrix.board }}
350- - name : Upload to S3
351- run : " [ -z \" $AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
352- env :
353- AWS_PAGER : ' '
354- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
355- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
356- if : (github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
357-
358-
359- build-espressif :
360- runs-on : ubuntu-20.04
361- needs : test
362- strategy :
363- fail-fast : false
364- matrix :
365- board : ${{ fromJSON(needs.test.outputs.boards-espressif) }}
366- if : ${{ needs.test.outputs.boards-espressif != '[]' }}
367- steps :
368- - name : Set up Python 3.8
369- uses : actions/setup-python@v1
370- with :
371- python-version : 3.8
372- - uses : actions/checkout@v2.2.0
373- with :
374- submodules : true
375- fetch-depth : 0
376- - name : Fetch tags
377- run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
378- - name : CircuitPython version
379- run : git describe --dirty --tags
380- - uses : actions/cache@v2
381- name : Fetch IDF tool cache
382- id : idf-cache
383- with :
384- path : ${{ github.workspace }}/.idf_tools
385- key : ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/espressif/esp-idf/HEAD') }}-20210716
386- - name : Clone IDF submodules
387- run : |
388- (cd $IDF_PATH && git submodule update --init)
389- env :
390- IDF_PATH : ${{ github.workspace }}/ports/espressif/esp-idf
391- - name : Install IDF tools
392- run : |
393- $IDF_PATH/tools/idf_tools.py --non-interactive install required
394- $IDF_PATH/tools/idf_tools.py --non-interactive install cmake
395- $IDF_PATH/tools/idf_tools.py --non-interactive install-python-env
396- rm -rf $IDF_TOOLS_PATH/dist
397- env :
398- IDF_PATH : ${{ github.workspace }}/ports/espressif/esp-idf
399- IDF_TOOLS_PATH : ${{ github.workspace }}/.idf_tools
400- - name : Install dependencies
401- run : |
402- source $IDF_PATH/export.sh
403- sudo apt-get install -y gettext ninja-build
404- pip install -r requirements-ci.txt -r requirements-dev.txt
405- env :
406- IDF_PATH : ${{ github.workspace }}/ports/espressif/esp-idf
407- IDF_TOOLS_PATH : ${{ github.workspace }}/.idf_tools
408- - name : Versions
409- run : |
410- source $IDF_PATH/export.sh
411- gcc --version
412- xtensa-esp32s2-elf-gcc --version
413- python3 --version
414- ninja --version
415- cmake --version
416- shell : bash
417- env :
418- IDF_PATH : ${{ github.workspace }}/ports/espressif/esp-idf
419- IDF_TOOLS_PATH : ${{ github.workspace }}/.idf_tools
420- - name : mpy-cross
421- run : make -C mpy-cross -j2
422- - name : Setup build failure matcher
423- run : echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
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/espressif/esp-idf
432- IDF_TOOLS_PATH : ${{ github.workspace }}/.idf_tools
433- BOARDS : ${{ matrix.board }}
434- - uses : actions/upload-artifact@v2
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_PAGER : ' '
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.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
255+ # build-arm:
256+ # runs-on: ubuntu-20.04
257+ # needs: test
258+ # strategy:
259+ # fail-fast: false
260+ # matrix:
261+ # board: ${{ fromJSON(needs.test.outputs.boards-arm) }}
262+ # if: ${{ needs.test.outputs.boards-arm != '[]' }}
263+ # steps:
264+ # - name: Set up Python 3.8
265+ # uses: actions/setup-python@v1
266+ # with:
267+ # python-version: 3.8
268+ # - uses: actions/checkout@v2.2.0
269+ # with:
270+ # submodules: true
271+ # fetch-depth: 0
272+ # - name: Fetch tags
273+ # run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
274+ # - name: Install dependencies
275+ # run: |
276+ # sudo apt-get install -y gettext
277+ # pip install -r requirements-ci.txt -r requirements-dev.txt
278+ # wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
279+ # sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
280+ # - name: Versions
281+ # run: |
282+ # gcc --version
283+ # arm-none-eabi-gcc --version
284+ # python3 --version
285+ # - name: mpy-cross
286+ # run: make -C mpy-cross -j2
287+ # - name: Setup build failure matcher
288+ # run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
289+ # - name: build
290+ # run: python3 -u build_release_files.py
291+ # working-directory: tools
292+ # env:
293+ # BOARDS: ${{ matrix.board }}
294+ # - uses: actions/upload-artifact@v2
295+ # with:
296+ # name: ${{ matrix.board }}
297+ # path: bin/${{ matrix.board }}
298+ # - name: Upload to S3
299+ # run: "[ -z \"$AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
300+ # env:
301+ # AWS_PAGER: ''
302+ # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
303+ # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
304+ # if: (github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
305+ #
306+ #
307+ # build-riscv:
308+ # runs-on: ubuntu-20.04
309+ # needs: test
310+ # strategy:
311+ # fail-fast: false
312+ # matrix:
313+ # board: ${{ fromJSON(needs.test.outputs.boards-riscv) }}
314+ # if: ${{ needs.test.outputs.boards-riscv != '[]' }}
315+ # steps:
316+ # - name: Set up Python 3.8
317+ # uses: actions/setup-python@v1
318+ # with:
319+ # python-version: 3.8
320+ # - uses: actions/checkout@v2.2.0
321+ # with:
322+ # submodules: true
323+ # fetch-depth: 0
324+ # - name: Fetch tags
325+ # run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
326+ # - name: Install dependencies
327+ # run: |
328+ # sudo apt-get install -y gettext
329+ # pip install -r requirements-ci.txt -r requirements-dev.txt
330+ # wget https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-centos6.tar.gz
331+ # sudo tar -C /usr --strip-components=1 -xaf riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-centos6.tar.gz
332+ # - name: Versions
333+ # run: |
334+ # gcc --version
335+ # riscv64-unknown-elf-gcc --version
336+ # python3 --version
337+ # - name: mpy-cross
338+ # run: make -C mpy-cross -j2
339+ # - name: Setup build failure matcher
340+ # run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
341+ # - name: build
342+ # run: python3 -u build_release_files.py
343+ # working-directory: tools
344+ # env:
345+ # BOARDS: ${{ matrix.board }}
346+ # - uses: actions/upload-artifact@v2
347+ # with:
348+ # name: ${{ matrix.board }}
349+ # path: bin/${{ matrix.board }}
350+ # - name: Upload to S3
351+ # run: "[ -z \"$AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
352+ # env:
353+ # AWS_PAGER: ''
354+ # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
355+ # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
356+ # if: (github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
357+ #
358+ #
359+ # build-espressif:
360+ # runs-on: ubuntu-20.04
361+ # needs: test
362+ # strategy:
363+ # fail-fast: false
364+ # matrix:
365+ # board: ${{ fromJSON(needs.test.outputs.boards-espressif) }}
366+ # if: ${{ needs.test.outputs.boards-espressif != '[]' }}
367+ # steps:
368+ # - name: Set up Python 3.8
369+ # uses: actions/setup-python@v1
370+ # with:
371+ # python-version: 3.8
372+ # - uses: actions/checkout@v2.2.0
373+ # with:
374+ # submodules: true
375+ # fetch-depth: 0
376+ # - name: Fetch tags
377+ # run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
378+ # - name: CircuitPython version
379+ # run: git describe --dirty --tags
380+ # - uses: actions/cache@v2
381+ # name: Fetch IDF tool cache
382+ # id: idf-cache
383+ # with:
384+ # path: ${{ github.workspace }}/.idf_tools
385+ # key: ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/espressif/esp-idf/HEAD') }}-20210716
386+ # - name: Clone IDF submodules
387+ # run: |
388+ # (cd $IDF_PATH && git submodule update --init)
389+ # env:
390+ # IDF_PATH: ${{ github.workspace }}/ports/espressif/esp-idf
391+ # - name: Install IDF tools
392+ # run: |
393+ # $IDF_PATH/tools/idf_tools.py --non-interactive install required
394+ # $IDF_PATH/tools/idf_tools.py --non-interactive install cmake
395+ # $IDF_PATH/tools/idf_tools.py --non-interactive install-python-env
396+ # rm -rf $IDF_TOOLS_PATH/dist
397+ # env:
398+ # IDF_PATH: ${{ github.workspace }}/ports/espressif/esp-idf
399+ # IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools
400+ # - name: Install dependencies
401+ # run: |
402+ # source $IDF_PATH/export.sh
403+ # sudo apt-get install -y gettext ninja-build
404+ # pip install -r requirements-ci.txt -r requirements-dev.txt
405+ # env:
406+ # IDF_PATH: ${{ github.workspace }}/ports/espressif/esp-idf
407+ # IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools
408+ # - name: Versions
409+ # run: |
410+ # source $IDF_PATH/export.sh
411+ # gcc --version
412+ # xtensa-esp32s2-elf-gcc --version
413+ # python3 --version
414+ # ninja --version
415+ # cmake --version
416+ # shell: bash
417+ # env:
418+ # IDF_PATH: ${{ github.workspace }}/ports/espressif/esp-idf
419+ # IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools
420+ # - name: mpy-cross
421+ # run: make -C mpy-cross -j2
422+ # - name: Setup build failure matcher
423+ # run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
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/espressif/esp-idf
432+ # IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools
433+ # BOARDS: ${{ matrix.board }}
434+ # - uses: actions/upload-artifact@v2
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_PAGER: ''
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.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
0 commit comments