Skip to content

Commit dc3baa0

Browse files
authored
Added Raspberry support for Github Action (#363)
* add raspberry pi ci support * fix raspberry ci * update to a test build version * update builder version
1 parent 91d0480 commit dc3baa0

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- 'docs'
88

99
env:
10-
BUILDER_VERSION: v0.8.28
10+
BUILDER_VERSION: v0.9.21
1111
BUILDER_SOURCE: releases
1212
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
1313
PACKAGE_NAME: aws-iot-device-sdk-python-v2
@@ -46,6 +46,31 @@ jobs:
4646
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
4747
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-al2-x64 build -p ${{ env.PACKAGE_NAME }}
4848
49+
50+
raspberry:
51+
runs-on: ubuntu-latest # latest
52+
permissions:
53+
id-token: write # This is required for requesting the JWT
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
image:
58+
- raspbian-bullseye
59+
steps:
60+
- name: configure AWS credentials (containers)
61+
uses: aws-actions/configure-aws-credentials@v1
62+
with:
63+
role-to-assume: ${{ env.CI_IOT_CONTAINERS }}
64+
aws-region: ${{ env.AWS_DEFAULT_REGION }}
65+
# set arm arch
66+
- name: Install qemu/docker
67+
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
68+
- name: Build ${{ env.PACKAGE_NAME }}
69+
run: |
70+
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
71+
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }}
72+
73+
4974
windows:
5075
runs-on: windows-latest
5176
permissions:

0 commit comments

Comments
 (0)