Skip to content

Commit e057cbf

Browse files
authored
Added Raspberry support for Github Action (#292)
* add raspberry pi ci support * update test build version * setup permissions * update bulder version
1 parent 2289520 commit e057cbf

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/ci.yml

Lines changed: 24 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-js-v2
@@ -44,6 +44,29 @@ jobs:
4444
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
4545
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-al2-x64 build -p ${{ env.PACKAGE_NAME }}
4646
47+
raspberry:
48+
runs-on: ubuntu-latest # latest
49+
permissions:
50+
id-token: write # This is required for requesting the JWT
51+
strategy:
52+
fail-fast: false
53+
matrix:
54+
image:
55+
- raspbian-bullseye
56+
steps:
57+
- name: configure AWS credentials (containers)
58+
uses: aws-actions/configure-aws-credentials@v1
59+
with:
60+
role-to-assume: ${{ env.CI_IOT_CONTAINERS }}
61+
aws-region: ${{ env.AWS_DEFAULT_REGION }}
62+
# set arm arch
63+
- name: Install qemu/docker
64+
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
65+
- name: Build ${{ env.PACKAGE_NAME }}
66+
run: |
67+
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
68+
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }}
69+
4770
windows:
4871
runs-on: windows-latest
4972
permissions:

0 commit comments

Comments
 (0)