Debian Codegraph @

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