Debian Codegraph @

crt/aws-c-event-stream/.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on:
4 push:
5 branches-ignore:
6 - 'main'
7
8 env:
9 BUILDER_VERSION: v0.9.92
10 BUILDER_SOURCE: releases
11 BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
12 PACKAGE_NAME: aws-c-event-stream
13 LINUX_BASE_IMAGE: ubuntu-18-x64
14 RUN: ${{ github.run_id }}-${{ github.run_number }}
15 CRT_CI_ROLE: ${{ secrets.CRT_CI_ROLE_ARN }}
16 AWS_DEFAULT_REGION: us-east-1
17
18 permissions:
19 id-token: write # This is required for requesting the JWT
20
21 jobs:
22 linux-compat:
23 runs-on: ubuntu-24.04 # latest
24 strategy:
25 fail-fast: false
26 matrix:
27 image:
28 - manylinux1-x64
29 - manylinux1-x86
30 - manylinux2014-x64
31 - manylinux2014-x86
32 - al2-x64
33 - fedora-34-x64
34 - opensuse-leap
35 - rhel8-x64
36 steps:
37 - uses: aws-actions/configure-aws-credentials@v4
38 with:
39 role-to-assume: ${{ env.CRT_CI_ROLE }}
40 aws-region: ${{ env.AWS_DEFAULT_REGION }}
41 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
42 - name: Build ${{ env.PACKAGE_NAME }}
43 run: |
44 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
45 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }}
46
47 linux-compiler-compat:
48 runs-on: ubuntu-24.04 # latest
49 strategy:
50 matrix:
51 compiler:
52 - clang-3
53 - clang-6
54 - clang-8
55 - clang-9
56 - clang-10
57 - clang-11
58 - clang-15
59 - clang-17
60 - clang-latest
61 - gcc-4.8
62 - gcc-5
63 - gcc-6
64 - gcc-7
65 - gcc-8
66 - gcc-11
67 - gcc-13
68 steps:
69 - uses: aws-actions/configure-aws-credentials@v4
70 with:
71 role-to-assume: ${{ env.CRT_CI_ROLE }}
72 aws-region: ${{ env.AWS_DEFAULT_REGION }}
73 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
74 - name: Build ${{ env.PACKAGE_NAME }}
75 run: |
76 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
77 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=${{ matrix.compiler }}
78
79 clang-sanitizers:
80 runs-on: ubuntu-24.04 # latest
81 strategy:
82 matrix:
83 sanitizers: [",thread", ",address,undefined"]
84 steps:
85 - uses: aws-actions/configure-aws-credentials@v4
86 with:
87 role-to-assume: ${{ env.CRT_CI_ROLE }}
88 aws-region: ${{ env.AWS_DEFAULT_REGION }}
89 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
90 - name: Build ${{ env.PACKAGE_NAME }}
91 run: |
92 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
93 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=clang-11 --cmake-extra=-DENABLE_SANITIZERS=ON --cmake-extra=-DSANITIZERS="${{ matrix.sanitizers }}"
94
95 linux-shared-libs:
96 runs-on: ubuntu-24.04 # latest
97 steps:
98 - uses: aws-actions/configure-aws-credentials@v4
99 with:
100 role-to-assume: ${{ env.CRT_CI_ROLE }}
101 aws-region: ${{ env.AWS_DEFAULT_REGION }}
102 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
103 - name: Build ${{ env.PACKAGE_NAME }}
104 run: |
105 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
106 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
107
108 windows:
109 runs-on: windows-2025 # latest
110 steps:
111 - uses: aws-actions/configure-aws-credentials@v4
112 with:
113 role-to-assume: ${{ env.CRT_CI_ROLE }}
114 aws-region: ${{ env.AWS_DEFAULT_REGION }}
115 - name: Build ${{ env.PACKAGE_NAME }} + consumers
116 run: |
117 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
118 python builder.pyz build -p ${{ env.PACKAGE_NAME }}
119
120 windows-vc17:
121 runs-on: windows-2025 # latest
122 strategy:
123 matrix:
124 arch: [x86, x64]
125 steps:
126 - uses: aws-actions/configure-aws-credentials@v4
127 with:
128 role-to-assume: ${{ env.CRT_CI_ROLE }}
129 aws-region: ${{ env.AWS_DEFAULT_REGION }}
130 - name: Build ${{ env.PACKAGE_NAME }} + consumers
131 run: |
132 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
133 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --target windows-${{ matrix.arch }} --compiler msvc-17
134
135 windows-shared-libs:
136 runs-on: windows-2025 # latest
137 steps:
138 - uses: aws-actions/configure-aws-credentials@v4
139 with:
140 role-to-assume: ${{ env.CRT_CI_ROLE }}
141 aws-region: ${{ env.AWS_DEFAULT_REGION }}
142 - name: Build ${{ env.PACKAGE_NAME }} + consumers
143 run: |
144 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
145 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
146
147 windows-app-verifier:
148 runs-on: windows-2025 # latest
149 steps:
150 - uses: aws-actions/configure-aws-credentials@v4
151 with:
152 role-to-assume: ${{ env.CRT_CI_ROLE }}
153 aws-region: ${{ env.AWS_DEFAULT_REGION }}
154 - name: Build ${{ env.PACKAGE_NAME }} + consumers
155 run: |
156 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
157 python builder.pyz build -p ${{ env.PACKAGE_NAME }} run_tests=false --cmake-extra=-DBUILD_TESTING=ON
158 - name: Run and check AppVerifier
159 run: |
160 python .\aws-c-event-stream\build\deps\aws-c-common\scripts\appverifier_ctest.py --build_directory .\aws-c-event-stream\build\aws-c-event-stream
161
162 macos:
163 runs-on: macos-15 # latest
164 steps:
165 - uses: aws-actions/configure-aws-credentials@v4
166 with:
167 role-to-assume: ${{ env.CRT_CI_ROLE }}
168 aws-region: ${{ env.AWS_DEFAULT_REGION }}
169 - name: Build ${{ env.PACKAGE_NAME }} + consumers
170 run: |
171 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
172 chmod a+x builder
173 ./builder build -p ${{ env.PACKAGE_NAME }}
174
175 macos-x64:
176 runs-on: macos-15-large # latest
177 steps:
178 - uses: aws-actions/configure-aws-credentials@v4
179 with:
180 role-to-assume: ${{ env.CRT_CI_ROLE }}
181 aws-region: ${{ env.AWS_DEFAULT_REGION }}
182 - name: Build ${{ env.PACKAGE_NAME }} + consumers
183 run: |
184 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
185 chmod a+x builder
186 ./builder build -p ${{ env.PACKAGE_NAME }}
187
188 # Test downstream repos.
189 # This should not be required because we can run into a chicken and egg problem if there is a change that needs some fix in a downstream repo.
190 downstream:
191 runs-on: ubuntu-24.04 # latest
192 steps:
193 - uses: aws-actions/configure-aws-credentials@v4
194 with:
195 role-to-assume: ${{ env.CRT_CI_ROLE }}
196 aws-region: ${{ env.AWS_DEFAULT_REGION }}
197 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
198 - name: Build ${{ env.PACKAGE_NAME }}
199 run: |
200 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
201 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build downstream -p ${{ env.PACKAGE_NAME }}