| 1 |
name: CI |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches-ignore: |
| 6 |
- 'main' |
| 7 |
- 'docs' |
| 8 |
|
| 9 |
env: |
| 10 |
BUILDER_VERSION: v0.9.96 |
| 11 |
BUILDER_SOURCE: releases |
| 12 |
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net |
| 13 |
PACKAGE_NAME: aws-crt-python |
| 14 |
LINUX_BASE_IMAGE: ubuntu-18-x64 |
| 15 |
RUN: ${{ github.run_id }}-${{ github.run_number }} |
| 16 |
CRT_CI_ROLE: ${{ secrets.CRT_CI_ROLE_ARN }} |
| 17 |
AWS_DEFAULT_REGION: us-east-1 |
| 18 |
|
| 19 |
jobs: |
| 20 |
manylinux1: |
| 21 |
runs-on: ubuntu-24.04 |
| 22 |
strategy: |
| 23 |
fail-fast: false |
| 24 |
matrix: |
| 25 |
image: |
| 26 |
- x64 |
| 27 |
- x86 |
| 28 |
python: |
| 29 |
- cp38-cp38 |
| 30 |
- cp39-cp39 |
| 31 |
permissions: |
| 32 |
id-token: write |
| 33 |
steps: |
| 34 |
- name: configure AWS credentials (containers) |
| 35 |
uses: aws-actions/configure-aws-credentials@v4 |
| 36 |
with: |
| 37 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 38 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 39 |
- name: Build ${{ env.PACKAGE_NAME }} |
| 40 |
run: | |
| 41 |
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 |
| 42 |
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-manylinux1-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }} --python /opt/python/${{ matrix.python }}/bin/python |
| 43 |
|
| 44 |
manylinux2014: |
| 45 |
runs-on: ubuntu-24.04 |
| 46 |
strategy: |
| 47 |
fail-fast: false |
| 48 |
matrix: |
| 49 |
image: |
| 50 |
- x64 |
| 51 |
- x86 |
| 52 |
python: |
| 53 |
- cp39-cp39 |
| 54 |
- cp310-cp310 |
| 55 |
- cp311-cp311 |
| 56 |
- cp312-cp312 |
| 57 |
- cp313-cp313 |
| 58 |
- cp314-cp314 |
| 59 |
- cp314-cp314t |
| 60 |
permissions: |
| 61 |
id-token: write |
| 62 |
steps: |
| 63 |
- name: configure AWS credentials (containers) |
| 64 |
uses: aws-actions/configure-aws-credentials@v4 |
| 65 |
with: |
| 66 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 67 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 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-manylinux2014-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }} --python /opt/python/${{ matrix.python }}/bin/python |
| 72 |
|
| 73 |
manylinux2014-arm64: |
| 74 |
runs-on: ubuntu-24.04-arm |
| 75 |
strategy: |
| 76 |
fail-fast: false |
| 77 |
matrix: |
| 78 |
python: |
| 79 |
- cp39-cp39 |
| 80 |
- cp310-cp310 |
| 81 |
- cp311-cp311 |
| 82 |
- cp312-cp312 |
| 83 |
- cp313-cp313 |
| 84 |
- cp314-cp314 |
| 85 |
- cp314-cp314t |
| 86 |
permissions: |
| 87 |
id-token: write |
| 88 |
steps: |
| 89 |
- name: configure AWS credentials (containers) |
| 90 |
uses: aws-actions/configure-aws-credentials@v4 |
| 91 |
with: |
| 92 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 93 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 94 |
- name: Build ${{ env.PACKAGE_NAME }} |
| 95 |
run: | |
| 96 |
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 |
| 97 |
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-manylinux2014-aarch64 build -p ${{ env.PACKAGE_NAME }} --python /opt/python/${{ matrix.python }}/bin/python |
| 98 |
|
| 99 |
musllinux-1-1: |
| 100 |
runs-on: ubuntu-24.04 |
| 101 |
strategy: |
| 102 |
fail-fast: false |
| 103 |
matrix: |
| 104 |
image: |
| 105 |
- x64 |
| 106 |
python: |
| 107 |
- cp38-cp38 |
| 108 |
- cp39-cp39 |
| 109 |
- cp310-cp310 |
| 110 |
- cp311-cp311 |
| 111 |
- cp312-cp312 |
| 112 |
- cp313-cp313 |
| 113 |
- cp313-cp313t |
| 114 |
permissions: |
| 115 |
id-token: write |
| 116 |
steps: |
| 117 |
- name: configure AWS credentials (containers) |
| 118 |
uses: aws-actions/configure-aws-credentials@v4 |
| 119 |
with: |
| 120 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 121 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 122 |
- name: Build ${{ env.PACKAGE_NAME }} |
| 123 |
run: | |
| 124 |
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 |
| 125 |
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-musllinux-1-1-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }} --python /opt/python/${{ matrix.python }}/bin/python |
| 126 |
|
| 127 |
musllinux-1-1-arm64: |
| 128 |
runs-on: ubuntu-24.04-arm |
| 129 |
strategy: |
| 130 |
fail-fast: false |
| 131 |
matrix: |
| 132 |
python: |
| 133 |
- cp38-cp38 |
| 134 |
- cp39-cp39 |
| 135 |
- cp310-cp310 |
| 136 |
- cp311-cp311 |
| 137 |
- cp312-cp312 |
| 138 |
- cp313-cp313 |
| 139 |
- cp313-cp313t |
| 140 |
permissions: |
| 141 |
id-token: write |
| 142 |
steps: |
| 143 |
- name: configure AWS credentials (containers) |
| 144 |
uses: aws-actions/configure-aws-credentials@v4 |
| 145 |
with: |
| 146 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 147 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 148 |
- name: Build ${{ env.PACKAGE_NAME }} |
| 149 |
run: | |
| 150 |
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 |
| 151 |
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-musllinux-1-1-aarch64 build -p ${{ env.PACKAGE_NAME }} --python /opt/python/${{ matrix.python }}/bin/python |
| 152 |
|
| 153 |
raspberry: |
| 154 |
runs-on: ubuntu-24.04-arm |
| 155 |
strategy: |
| 156 |
fail-fast: false |
| 157 |
matrix: |
| 158 |
image: |
| 159 |
- raspbian-bullseye |
| 160 |
permissions: |
| 161 |
id-token: write |
| 162 |
steps: |
| 163 |
- name: configure AWS credentials (containers) |
| 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 |
|
| 169 |
- name: Build ${{ env.PACKAGE_NAME }} |
| 170 |
run: | |
| 171 |
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 |
| 172 |
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }} |
| 173 |
|
| 174 |
linux-compat: |
| 175 |
runs-on: ubuntu-24.04 |
| 176 |
strategy: |
| 177 |
fail-fast: false |
| 178 |
matrix: |
| 179 |
image: |
| 180 |
- al2-x64 |
| 181 |
- fedora-34-x64 |
| 182 |
- opensuse-leap |
| 183 |
- rhel8-x64 |
| 184 |
permissions: |
| 185 |
id-token: write |
| 186 |
steps: |
| 187 |
- name: configure AWS credentials (containers) |
| 188 |
uses: aws-actions/configure-aws-credentials@v4 |
| 189 |
with: |
| 190 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 191 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 192 |
- name: Build ${{ env.PACKAGE_NAME }} |
| 193 |
run: | |
| 194 |
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 |
| 195 |
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }} |
| 196 |
|
| 197 |
linux-compiler-compat: |
| 198 |
runs-on: ubuntu-24.04 |
| 199 |
strategy: |
| 200 |
fail-fast: false |
| 201 |
matrix: |
| 202 |
compiler: |
| 203 |
- clang-6 |
| 204 |
- clang-8 |
| 205 |
- clang-9 |
| 206 |
- clang-10 |
| 207 |
- clang-11 |
| 208 |
- clang-latest |
| 209 |
- gcc-5 |
| 210 |
- gcc-6 |
| 211 |
- gcc-7 |
| 212 |
- gcc-8 |
| 213 |
permissions: |
| 214 |
id-token: write |
| 215 |
steps: |
| 216 |
- name: configure AWS credentials (containers) |
| 217 |
uses: aws-actions/configure-aws-credentials@v4 |
| 218 |
with: |
| 219 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 220 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 221 |
- name: Caller Identity |
| 222 |
run: | |
| 223 |
aws sts get-caller-identity |
| 224 |
- name: Build ${{ env.PACKAGE_NAME }} |
| 225 |
run: | |
| 226 |
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 |
| 227 |
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=${{ matrix.compiler }} |
| 228 |
|
| 229 |
use-system-libcrypto: |
| 230 |
runs-on: ubuntu-24.04 |
| 231 |
permissions: |
| 232 |
id-token: write |
| 233 |
steps: |
| 234 |
- name: configure AWS credentials (containers) |
| 235 |
uses: aws-actions/configure-aws-credentials@v4 |
| 236 |
with: |
| 237 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 238 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 239 |
- name: Build ${{ env.PACKAGE_NAME }} |
| 240 |
env: |
| 241 |
AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO: '1' |
| 242 |
run: | |
| 243 |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" |
| 244 |
chmod a+x builder |
| 245 |
./builder build -p ${{ env.PACKAGE_NAME }} --python=python3.12 |
| 246 |
- name: Assert libcrypto.so used |
| 247 |
run: | |
| 248 |
# assert it's linked against the system's libcrypto.so |
| 249 |
AWSCRT_PATH=`aws-crt-python/.venv-builder/bin/python3 -c "import _awscrt; print(_awscrt.__file__)"` |
| 250 |
printf "AWSCRT_PATH: $AWSCRT_PATH\n" |
| 251 |
|
| 252 |
LINKED_AGAINST=`ldd $AWSCRT_PATH` |
| 253 |
printf "LINKED AGAINST:\n$LINKED_AGAINST\n" |
| 254 |
|
| 255 |
USES_LIBCRYPTO_SO=`echo "$LINKED_AGAINST" | grep 'libcrypto*.so' | head -1` |
| 256 |
test -n "$USES_LIBCRYPTO_SO" |
| 257 |
|
| 258 |
windows: |
| 259 |
|
| 260 |
|
| 261 |
runs-on: windows-2022 |
| 262 |
strategy: |
| 263 |
fail-fast: false |
| 264 |
matrix: |
| 265 |
arch: [x86, x64] |
| 266 |
permissions: |
| 267 |
id-token: write |
| 268 |
steps: |
| 269 |
- uses: actions/setup-python@v5 |
| 270 |
id: python38 |
| 271 |
with: |
| 272 |
python-version: '3.8.10' |
| 273 |
architecture: ${{ matrix.arch }} |
| 274 |
- uses: ilammy/setup-nasm@v1 |
| 275 |
- name: configure AWS credentials (containers) |
| 276 |
uses: aws-actions/configure-aws-credentials@v4 |
| 277 |
with: |
| 278 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 279 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 280 |
- name: Build ${{ env.PACKAGE_NAME }} + consumers |
| 281 |
run: | |
| 282 |
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" |
| 283 |
python builder.pyz build -p ${{ env.PACKAGE_NAME }} --python "${{ steps.python38.outputs.python-path }}" |
| 284 |
|
| 285 |
windows-latest: |
| 286 |
|
| 287 |
runs-on: windows-2025 |
| 288 |
strategy: |
| 289 |
fail-fast: false |
| 290 |
matrix: |
| 291 |
arch: [x86, x64] |
| 292 |
permissions: |
| 293 |
id-token: write |
| 294 |
steps: |
| 295 |
- uses: actions/setup-python@v5 |
| 296 |
id: python38 |
| 297 |
with: |
| 298 |
python-version: '3.8.10' |
| 299 |
architecture: ${{ matrix.arch }} |
| 300 |
- uses: ilammy/setup-nasm@v1 |
| 301 |
- name: configure AWS credentials (containers) |
| 302 |
uses: aws-actions/configure-aws-credentials@v4 |
| 303 |
with: |
| 304 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 305 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 306 |
- name: Build ${{ env.PACKAGE_NAME }} + consumers |
| 307 |
run: | |
| 308 |
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" |
| 309 |
python builder.pyz build -p ${{ env.PACKAGE_NAME }} --python "${{ steps.python38.outputs.python-path }}" |
| 310 |
|
| 311 |
macos: |
| 312 |
runs-on: macos-14 |
| 313 |
permissions: |
| 314 |
id-token: write |
| 315 |
steps: |
| 316 |
- name: configure AWS credentials (containers) |
| 317 |
uses: aws-actions/configure-aws-credentials@v4 |
| 318 |
with: |
| 319 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 320 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 321 |
- name: Build ${{ env.PACKAGE_NAME }} + consumers |
| 322 |
run: | |
| 323 |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" |
| 324 |
chmod a+x builder |
| 325 |
./builder build -p ${{ env.PACKAGE_NAME }} |
| 326 |
|
| 327 |
macos-x64: |
| 328 |
runs-on: macos-14-large |
| 329 |
permissions: |
| 330 |
id-token: write |
| 331 |
steps: |
| 332 |
- name: configure AWS credentials (containers) |
| 333 |
uses: aws-actions/configure-aws-credentials@v4 |
| 334 |
with: |
| 335 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 336 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 337 |
- name: Build ${{ env.PACKAGE_NAME }} + consumers |
| 338 |
run: | |
| 339 |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" |
| 340 |
chmod a+x builder |
| 341 |
./builder build -p ${{ env.PACKAGE_NAME }} |
| 342 |
|
| 343 |
macos-s2n: |
| 344 |
runs-on: macos-14 |
| 345 |
env: |
| 346 |
AWS_CRT_USE_NON_FIPS_TLS_13: 1 |
| 347 |
permissions: |
| 348 |
id-token: write |
| 349 |
steps: |
| 350 |
- name: configure AWS credentials (containers) |
| 351 |
uses: aws-actions/configure-aws-credentials@v4 |
| 352 |
with: |
| 353 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 354 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 355 |
- name: Build ${{ env.PACKAGE_NAME }} + consumers |
| 356 |
run: | |
| 357 |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" |
| 358 |
chmod a+x builder |
| 359 |
./builder build -p ${{ env.PACKAGE_NAME }} |
| 360 |
|
| 361 |
macos-x64-s2n: |
| 362 |
runs-on: macos-14-large |
| 363 |
env: |
| 364 |
AWS_CRT_USE_NON_FIPS_TLS_13: 1 |
| 365 |
permissions: |
| 366 |
id-token: write |
| 367 |
steps: |
| 368 |
- name: configure AWS credentials (containers) |
| 369 |
uses: aws-actions/configure-aws-credentials@v4 |
| 370 |
with: |
| 371 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 372 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 373 |
- name: Build ${{ env.PACKAGE_NAME }} + consumers |
| 374 |
run: | |
| 375 |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" |
| 376 |
chmod a+x builder |
| 377 |
./builder build -p ${{ env.PACKAGE_NAME }} |
| 378 |
|
| 379 |
openbsd: |
| 380 |
runs-on: ubuntu-24.04 |
| 381 |
strategy: |
| 382 |
fail-fast: false |
| 383 |
matrix: |
| 384 |
|
| 385 |
version: ['7.8', '7.9'] |
| 386 |
permissions: |
| 387 |
id-token: write |
| 388 |
steps: |
| 389 |
- name: configure AWS credentials (containers) |
| 390 |
uses: aws-actions/configure-aws-credentials@v4 |
| 391 |
with: |
| 392 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 393 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 394 |
|
| 395 |
- uses: actions/checkout@v4 |
| 396 |
with: |
| 397 |
submodules: true |
| 398 |
- name: Build ${{ env.PACKAGE_NAME }} + consumers |
| 399 |
uses: cross-platform-actions/[email protected] |
| 400 |
with: |
| 401 |
operating_system: openbsd |
| 402 |
version: ${{ matrix.version }} |
| 403 |
cpu_count: 4 |
| 404 |
shell: bash |
| 405 |
environment_variables: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_DEFAULT_REGION |
| 406 |
run: | |
| 407 |
sudo pkg_add awscli%v2 py3-pip py3-urllib3 |
| 408 |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder')" |
| 409 |
chmod a+x builder |
| 410 |
./builder build -p ${{ env.PACKAGE_NAME }} |
| 411 |
|
| 412 |
freebsd: |
| 413 |
runs-on: ubuntu-24.04 |
| 414 |
permissions: |
| 415 |
id-token: write |
| 416 |
steps: |
| 417 |
- name: configure AWS credentials (containers) |
| 418 |
uses: aws-actions/configure-aws-credentials@v4 |
| 419 |
with: |
| 420 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 421 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 422 |
- uses: actions/checkout@v4 |
| 423 |
with: |
| 424 |
submodules: true |
| 425 |
|
| 426 |
- name: Build ${{ env.PACKAGE_NAME }} + consumers |
| 427 |
uses: cross-platform-actions/[email protected] |
| 428 |
with: |
| 429 |
operating_system: freebsd |
| 430 |
version: '14.0' |
| 431 |
cpu_count: 4 |
| 432 |
shell: bash |
| 433 |
environment_variables: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_DEFAULT_REGION |
| 434 |
run: | |
| 435 |
sudo pkg install -y python3 devel/py-pip net/py-urllib3 devel/py-awscli cmake |
| 436 |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder')" |
| 437 |
chmod a+x builder |
| 438 |
./builder build -p ${{ env.PACKAGE_NAME }} |
| 439 |
|
| 440 |
|
| 441 |
tests-ok-without-creds: |
| 442 |
runs-on: ubuntu-24.04 |
| 443 |
steps: |
| 444 |
- uses: actions/checkout@v4 |
| 445 |
with: |
| 446 |
submodules: true |
| 447 |
- name: Run tests |
| 448 |
run: | |
| 449 |
python3 -m pip install ".[dev]" --verbose |
| 450 |
python3 -m unittest discover --failfast --verbose |
| 451 |
|
| 452 |
package-source: |
| 453 |
runs-on: ubuntu-24.04 |
| 454 |
permissions: |
| 455 |
id-token: write |
| 456 |
steps: |
| 457 |
- name: configure AWS credentials (containers) |
| 458 |
uses: aws-actions/configure-aws-credentials@v4 |
| 459 |
with: |
| 460 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 461 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 462 |
- uses: actions/checkout@v4 |
| 463 |
with: |
| 464 |
submodules: true |
| 465 |
- name: Package source + install |
| 466 |
run: | |
| 467 |
python3 -m pip install build |
| 468 |
python3 -m build --sdist |
| 469 |
cd dist |
| 470 |
python3 -m pip install -v awscrt-1.0.0.dev0.tar.gz |
| 471 |
python3 -c "import awscrt.io" |
| 472 |
|
| 473 |
|
| 474 |
check-docs: |
| 475 |
runs-on: ubuntu-22.04 |
| 476 |
steps: |
| 477 |
- uses: actions/checkout@v4 |
| 478 |
with: |
| 479 |
submodules: true |
| 480 |
- name: Check docs |
| 481 |
run: | |
| 482 |
python3 -m pip install --upgrade pip |
| 483 |
python3 -m pip install --verbose ".[dev]" |
| 484 |
./scripts/make-docs.py |
| 485 |
|
| 486 |
check-submodules: |
| 487 |
runs-on: ubuntu-24.04 |
| 488 |
steps: |
| 489 |
- name: Checkout Source |
| 490 |
uses: actions/checkout@v4 |
| 491 |
with: |
| 492 |
submodules: true |
| 493 |
fetch-depth: 0 |
| 494 |
- name: Check Submodules |
| 495 |
|
| 496 |
|
| 497 |
uses: awslabs/aws-crt-builder/.github/actions/check-submodules@main |