| 1 |
version: 0.2 |
| 2 |
|
| 3 |
|
| 4 |
env: |
| 5 |
shell: bash |
| 6 |
variables: |
| 7 |
BUILDER_VERSION: v0.9.59 |
| 8 |
BUILDER_SOURCE: releases |
| 9 |
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net |
| 10 |
PACKAGE_NAME: aws-crt-python |
| 11 |
phases: |
| 12 |
install: |
| 13 |
commands: |
| 14 |
- apt-get update -y |
| 15 |
- apt-get install gcc-7 cmake ninja-build python3 python3-pip python3-venv -y |
| 16 |
pre_build: |
| 17 |
commands: |
| 18 |
- export CC=gcc-7 |
| 19 |
build: |
| 20 |
commands: |
| 21 |
- echo Build started on `date` |
| 22 |
- git submodule update --init |
| 23 |
|
| 24 |
- python3 -c "from urllib.request import urlretrieve; urlretrieve('$BUILDER_HOST/$BUILDER_SOURCE/$BUILDER_VERSION/builder.pyz?run=$CODEBUILD_BUILD_ID', 'builder.pyz')" |
| 25 |
- python3 builder.pyz build --project aws-crt-python downstream |
| 26 |
post_build: |
| 27 |
commands: |
| 28 |
- echo Build completed on `date` |