From eb20bf2d22678daf34043bac4265ca7b6df6ca0b Mon Sep 17 00:00:00 2001 From: Zhihui Xia Date: Wed, 19 Oct 2022 09:58:58 -0700 Subject: [PATCH 1/4] add raspberry pi ci support --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65cc6005..20974a2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,31 @@ jobs: aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-al2-x64 build -p ${{ env.PACKAGE_NAME }} + + raspberry: + runs-on: ubuntu-latest # latest + strategy: + fail-fast: false + matrix: + image: + - raspbian-bullseye + steps: + - name: configure AWS credentials (containers) + uses: aws-actions/configure-aws-credentials@v1 + with: + role-to-assume: ${{ env.CI_IOT_CONTAINERS }} + aws-region: ${{ env.AWS_DEFAULT_REGION }} + steps: + # set arm arch + - name: Install qemu/docker + run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + + - name: Build ${{ env.PACKAGE_NAME }} + run: | + aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh + ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }} + + windows: runs-on: windows-latest permissions: From 0ac10542ee17c534019ccf3b4c0555d92d23a8d8 Mon Sep 17 00:00:00 2001 From: Zhihui Xia Date: Wed, 19 Oct 2022 10:04:24 -0700 Subject: [PATCH 2/4] fix raspberry ci --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20974a2c..50515b0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,8 @@ jobs: raspberry: runs-on: ubuntu-latest # latest + permissions: + id-token: write # This is required for requesting the JWT strategy: fail-fast: false matrix: @@ -60,7 +62,6 @@ jobs: with: role-to-assume: ${{ env.CI_IOT_CONTAINERS }} aws-region: ${{ env.AWS_DEFAULT_REGION }} - steps: # set arm arch - name: Install qemu/docker run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes From c62c39062f8b99ace915f07ea5d4415fd813015f Mon Sep 17 00:00:00 2001 From: Zhihui Xia Date: Wed, 19 Oct 2022 10:09:36 -0700 Subject: [PATCH 3/4] update to a test build version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50515b0d..a46c62a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: - 'docs' env: - BUILDER_VERSION: v0.8.28 + BUILDER_VERSION: v0.9.10 # temprary build version here, should be updated after latest crt-builder get released BUILDER_SOURCE: releases BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net PACKAGE_NAME: aws-iot-device-sdk-python-v2 From b4244cdf1577bfee3f37185bac7936e33d87ca79 Mon Sep 17 00:00:00 2001 From: Zhihui Xia Date: Mon, 24 Oct 2022 10:04:22 -0700 Subject: [PATCH 4/4] update builder version --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a46c62a5..a9b60f6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: - 'docs' env: - BUILDER_VERSION: v0.9.10 # temprary build version here, should be updated after latest crt-builder get released + BUILDER_VERSION: v0.9.21 BUILDER_SOURCE: releases BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net PACKAGE_NAME: aws-iot-device-sdk-python-v2 @@ -65,7 +65,6 @@ jobs: # set arm arch - name: Install qemu/docker run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - - name: Build ${{ env.PACKAGE_NAME }} run: | aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh