Skip to content

Commit 2e557d3

Browse files
authored
Added Raspberry support for Github Action (#486)
* add rapsberry pi ci * add credential for ci container * add id-token permission * setup a test build version * setup a test build version * update build version
1 parent 609f0bc commit 2e557d3

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.9.20
10+
BUILDER_VERSION: v0.9.21
1111
BUILDER_SOURCE: releases
1212
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
1313
PACKAGE_NAME: aws-iot-device-sdk-cpp-v2
@@ -61,6 +61,31 @@ jobs:
6161
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
6262
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }}
6363
64+
65+
raspberry:
66+
runs-on: ubuntu-20.04 # latest
67+
strategy:
68+
fail-fast: false
69+
matrix:
70+
image:
71+
- raspbian-bullseye
72+
permissions:
73+
id-token: write # This is required for requesting the JWT
74+
steps:
75+
- name: configure AWS credentials (containers)
76+
uses: aws-actions/configure-aws-credentials@v1
77+
with:
78+
role-to-assume: ${{ env.CI_IOT_CONTAINERS }}
79+
aws-region: ${{ env.AWS_DEFAULT_REGION }}
80+
# set arm arch
81+
- name: Install qemu/docker
82+
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
83+
- name: Build ${{ env.PACKAGE_NAME }}
84+
run: |
85+
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
86+
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }}
87+
88+
6489
linux-compiler-compat:
6590
runs-on: ubuntu-latest
6691
strategy:

0 commit comments

Comments
 (0)