Debian Codegraph @

crt/aws-c-auth/.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-auth
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 fail-fast: false
51 matrix:
52 compiler:
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 linux-shared-libs:
80 runs-on: ubuntu-24.04 # latest
81 steps:
82 - uses: aws-actions/configure-aws-credentials@v4
83 with:
84 role-to-assume: ${{ env.CRT_CI_ROLE }}
85 aws-region: ${{ env.AWS_DEFAULT_REGION }}
86 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
87 - name: Build ${{ env.PACKAGE_NAME }}
88 run: |
89 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
90 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
91
92 windows:
93 runs-on: windows-2025 # latest
94 steps:
95 - uses: aws-actions/configure-aws-credentials@v4
96 with:
97 role-to-assume: ${{ env.CRT_CI_ROLE }}
98 aws-region: ${{ env.AWS_DEFAULT_REGION }}
99 - name: Build ${{ env.PACKAGE_NAME }} + consumers
100 run: |
101 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
102 python builder.pyz build -p ${{ env.PACKAGE_NAME }}
103
104 windows-vc17:
105 runs-on: windows-2025 # latest
106 strategy:
107 matrix:
108 arch: [x86, x64]
109 steps:
110 - uses: aws-actions/configure-aws-credentials@v4
111 with:
112 role-to-assume: ${{ env.CRT_CI_ROLE }}
113 aws-region: ${{ env.AWS_DEFAULT_REGION }}
114 - name: Build ${{ env.PACKAGE_NAME }} + consumers
115 run: |
116 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
117 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --target windows-${{ matrix.arch }} --compiler msvc-17
118
119 windows-shared-libs:
120 runs-on: windows-2025 # latest
121 steps:
122 - uses: aws-actions/configure-aws-credentials@v4
123 with:
124 role-to-assume: ${{ env.CRT_CI_ROLE }}
125 aws-region: ${{ env.AWS_DEFAULT_REGION }}
126 - name: Build ${{ env.PACKAGE_NAME }} + consumers
127 run: |
128 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
129 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
130
131 windows-app-verifier:
132 runs-on: windows-2025 # latest
133 steps:
134 - uses: aws-actions/configure-aws-credentials@v4
135 with:
136 role-to-assume: ${{ env.CRT_CI_ROLE }}
137 aws-region: ${{ env.AWS_DEFAULT_REGION }}
138 - name: Build ${{ env.PACKAGE_NAME }} + consumers
139 run: |
140 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
141 python builder.pyz build -p ${{ env.PACKAGE_NAME }} run_tests=false --cmake-extra=-DBUILD_TESTING=ON
142 - name: Run and check AppVerifier
143 run: |
144 python .\aws-c-auth\build\deps\aws-c-common\scripts\appverifier_ctest.py --build_directory .\aws-c-auth\build\aws-c-auth
145
146 macos:
147 runs-on: macos-14 # latest
148 steps:
149 - uses: aws-actions/configure-aws-credentials@v4
150 with:
151 role-to-assume: ${{ env.CRT_CI_ROLE }}
152 aws-region: ${{ env.AWS_DEFAULT_REGION }}
153 - name: Build ${{ env.PACKAGE_NAME }} + consumers
154 run: |
155 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
156 chmod a+x builder
157 ./builder build -p ${{ env.PACKAGE_NAME }}
158
159 macos-x64:
160 runs-on: macos-14-large # latest
161 steps:
162 - uses: aws-actions/configure-aws-credentials@v4
163 with:
164 role-to-assume: ${{ env.CRT_CI_ROLE }}
165 aws-region: ${{ env.AWS_DEFAULT_REGION }}
166 - name: Build ${{ env.PACKAGE_NAME }} + consumers
167 run: |
168 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
169 chmod a+x builder
170 ./builder build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON
171
172 macos-s2n:
173 runs-on: macos-14 # latest
174 env:
175 AWS_CRT_USE_NON_FIPS_TLS_13: 1
176 steps:
177 - uses: aws-actions/configure-aws-credentials@v4
178 with:
179 role-to-assume: ${{ env.CRT_CI_ROLE }}
180 aws-region: ${{ env.AWS_DEFAULT_REGION }}
181 - name: Build ${{ env.PACKAGE_NAME }} + consumers
182 run: |
183 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
184 chmod a+x builder
185 ./builder build -p ${{ env.PACKAGE_NAME }}
186
187 macos-x64-s2n:
188 runs-on: macos-14-large # latest
189 env:
190 AWS_CRT_USE_NON_FIPS_TLS_13: 1
191 steps:
192 - uses: aws-actions/configure-aws-credentials@v4
193 with:
194 role-to-assume: ${{ env.CRT_CI_ROLE }}
195 aws-region: ${{ env.AWS_DEFAULT_REGION }}
196 - name: Build ${{ env.PACKAGE_NAME }} + consumers
197 run: |
198 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
199 chmod a+x builder
200 ./builder build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON
201
202 # Test downstream repos.
203 # 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.
204 downstream:
205 runs-on: ubuntu-24.04 # latest
206 steps:
207 - uses: aws-actions/configure-aws-credentials@v4
208 with:
209 role-to-assume: ${{ env.CRT_CI_ROLE }}
210 aws-region: ${{ env.AWS_DEFAULT_REGION }}
211 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
212 - name: Build ${{ env.PACKAGE_NAME }}
213 run: |
214 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
215 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build downstream -p ${{ env.PACKAGE_NAME }}