Skip to content

Commit 5867de1

Browse files
committed
setup raspberry ci
1 parent 4f799f7 commit 5867de1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
strategy:
53+
fail-fast: false
54+
matrix:
55+
image:
56+
- raspbian-bullseye
57+
steps:
58+
- name: configure AWS credentials (containers)
59+
uses: aws-actions/configure-aws-credentials@v1
60+
with:
61+
role-to-assume: ${{ env.CI_IOT_CONTAINERS }}
62+
aws-region: ${{ env.AWS_DEFAULT_REGION }}
63+
steps:
64+
# set arm arch
65+
- name: Install qemu/docker
66+
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
67+
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)