diff --git a/.github/workflows/build-boards.yml b/.github/workflows/build-boards.yml index b9e6577a19..457fce5b98 100644 --- a/.github/workflows/build-boards.yml +++ b/.github/workflows/build-boards.yml @@ -6,14 +6,17 @@ on: platform: required: true type: string - boards: required: true type: string - cp-version: required: true type: string + secrets: + AWS_ACCESS_KEY_ID: + required: false + AWS_SECRET_ACCESS_KEY: + required: false jobs: build: diff --git a/.github/workflows/build-mpy-cross.yml b/.github/workflows/build-mpy-cross.yml index c17c9da1cb..10c4498bc8 100644 --- a/.github/workflows/build-mpy-cross.yml +++ b/.github/workflows/build-mpy-cross.yml @@ -6,6 +6,11 @@ on: cp-version: required: true type: string + secrets: + AWS_ACCESS_KEY_ID: + required: false + AWS_SECRET_ACCESS_KEY: + required: false jobs: build: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad488152f1..6159f7291e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,15 +96,14 @@ jobs: with: cp-version: ${{ needs.scheduler.outputs.cp-version }} - mpy-cross: needs: scheduler if: needs.scheduler.outputs.build-boards == 'True' uses: ./.github/workflows/build-mpy-cross.yml + secrets: inherit with: cp-version: ${{ needs.scheduler.outputs.cp-version }} - mpy-cross-mac: runs-on: macos-11 needs: scheduler @@ -223,41 +222,41 @@ jobs: [ -z "$TWINE_USERNAME" ] || echo "Uploading dev release to PyPi" [ -z "$TWINE_USERNAME" ] || twine upload circuitpython-stubs/dist/* - aarch: needs: [scheduler, mpy-cross, tests] if: ${{ needs.scheduler.outputs.boards-aarch != '[]' }} uses: ./.github/workflows/build-boards.yml + secrets: inherit with: platform: aarch boards: ${{ needs.scheduler.outputs.boards-aarch }} cp-version: ${{ needs.scheduler.outputs.cp-version }} - arm: needs: [scheduler, mpy-cross, tests] if: ${{ needs.scheduler.outputs.boards-arm != '[]' }} uses: ./.github/workflows/build-boards.yml + secrets: inherit with: platform: arm boards: ${{ needs.scheduler.outputs.boards-arm }} cp-version: ${{ needs.scheduler.outputs.cp-version }} - esp: needs: [scheduler, mpy-cross, tests] if: ${{ needs.scheduler.outputs.boards-esp != '[]' }} uses: ./.github/workflows/build-boards.yml + secrets: inherit with: platform: esp boards: ${{ needs.scheduler.outputs.boards-esp }} cp-version: ${{ needs.scheduler.outputs.cp-version }} - riscv: needs: [scheduler, mpy-cross, tests] if: ${{ needs.scheduler.outputs.boards-riscv != '[]' }} uses: ./.github/workflows/build-boards.yml + secrets: inherit with: platform: riscv boards: ${{ needs.scheduler.outputs.boards-riscv }} @@ -267,6 +266,7 @@ jobs: needs: [scheduler, mpy-cross, tests] if: ${{ needs.scheduler.outputs.boards-rpi != '[]' }} uses: ./.github/workflows/build-boards.yml + secrets: inherit with: platform: arm boards: ${{ needs.scheduler.outputs.boards-rpi }}