Debian Codegraph @

crt/aws-c-compression/.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-compression
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 - fedora-34-x64
33 - opensuse-leap
34 - rhel8-x64
35 - al2-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 - gcc-4.8
61 - gcc-5
62 - gcc-6
63 - gcc-7
64 - gcc-8
65 - gcc-11
66 - gcc-13
67 steps:
68 - uses: aws-actions/configure-aws-credentials@v4
69 with:
70 role-to-assume: ${{ env.CRT_CI_ROLE }}
71 aws-region: ${{ env.AWS_DEFAULT_REGION }}
72 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
73 - name: Build ${{ env.PACKAGE_NAME }}
74 run: |
75 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
76 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=${{ matrix.compiler }}
77
78 clang-sanitizers:
79 runs-on: ubuntu-24.04 # latest
80 strategy:
81 matrix:
82 sanitizers: [",thread", ",address,undefined"]
83 steps:
84 - uses: aws-actions/configure-aws-credentials@v4
85 with:
86 role-to-assume: ${{ env.CRT_CI_ROLE }}
87 aws-region: ${{ env.AWS_DEFAULT_REGION }}
88 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
89 - name: Build ${{ env.PACKAGE_NAME }}
90 run: |
91 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
92 ./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 }}"
93
94 linux-shared-libs:
95 runs-on: ubuntu-24.04 # latest
96 steps:
97 - uses: aws-actions/configure-aws-credentials@v4
98 with:
99 role-to-assume: ${{ env.CRT_CI_ROLE }}
100 aws-region: ${{ env.AWS_DEFAULT_REGION }}
101 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
102 - name: Build ${{ env.PACKAGE_NAME }}
103 run: |
104 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
105 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
106
107 windows:
108 runs-on: windows-2025 # latest
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 }}
118
119 windows-vc17:
120 runs-on: windows-2025 # latest
121 strategy:
122 matrix:
123 arch: [x86, x64]
124 steps:
125 - uses: aws-actions/configure-aws-credentials@v4
126 with:
127 role-to-assume: ${{ env.CRT_CI_ROLE }}
128 aws-region: ${{ env.AWS_DEFAULT_REGION }}
129 - name: Build ${{ env.PACKAGE_NAME }} + consumers
130 run: |
131 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
132 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --target windows-${{ matrix.arch }} --compiler msvc-17
133
134 windows-shared-libs:
135 runs-on: windows-2025 # latest
136 steps:
137 - uses: aws-actions/configure-aws-credentials@v4
138 with:
139 role-to-assume: ${{ env.CRT_CI_ROLE }}
140 aws-region: ${{ env.AWS_DEFAULT_REGION }}
141 - name: Build ${{ env.PACKAGE_NAME }} + consumers
142 run: |
143 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
144 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
145
146 windows-app-verifier:
147 runs-on: windows-2025 # 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 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
156 python builder.pyz build -p ${{ env.PACKAGE_NAME }} run_tests=false --cmake-extra=-DBUILD_TESTING=ON
157 - name: Run and check AppVerifier
158 run: |
159 python .\aws-c-compression\build\deps\aws-c-common\scripts\appverifier_ctest.py --build_directory .\aws-c-compression\build\aws-c-compression
160
161 macos:
162 runs-on: macos-14 # latest
163 steps:
164 - uses: aws-actions/configure-aws-credentials@v4
165 with:
166 role-to-assume: ${{ env.CRT_CI_ROLE }}
167 aws-region: ${{ env.AWS_DEFAULT_REGION }}
168 - name: Build ${{ env.PACKAGE_NAME }} + consumers
169 run: |
170 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
171 chmod a+x builder
172 ./builder build -p ${{ env.PACKAGE_NAME }}
173
174 macos-x64:
175 runs-on: macos-14-large # latest
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 # Test downstream repos.
188 # 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.
189 downstream:
190 runs-on: ubuntu-24.04 # latest
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 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
197 - name: Build ${{ env.PACKAGE_NAME }}
198 run: |
199 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
200 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build downstream -p ${{ env.PACKAGE_NAME }}