1version: 0.2 2 3env: 4 shell: bash 5 variables: 6 BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net 7 PACKAGE_NAME: aws-crt-java 8 9phases: 10 install: 11 commands: 12 - sudo add-apt-repository ppa:openjdk-r/ppa 13 - sudo add-apt-repository ppa:ubuntu-toolchain-r/test 14 - sudo apt-get update -y 15 - sudo apt-get install cmake -y 16 build: 17 commands: 18 - echo Build started on `date` 19 # Update the submodules 20 - git submodule update --init 21 - export BUILDER_VERSION=$(cat .github/workflows/ci.yml | grep 'BUILDER_VERSION:' | sed 's/\s*BUILDER_VERSION:\s*\(.*\)/\1/') 22 - export BUILDER_SOURCE=$(cat .github/workflows/ci.yml | grep 'BUILDER_SOURCE:' | sed 's/\s*BUILDER_SOURCE:\s*\(.*\)/\1/') 23 - echo "Using builder version='${BUILDER_VERSION}' source='${BUILDER_SOURCE}'" 24 # Build library and test 25 - python3 -c "from urllib.request import urlretrieve; urlretrieve('$BUILDER_HOST/$BUILDER_SOURCE/$BUILDER_VERSION/builder.pyz?run=$CODEBUILD_BUILD_ID', 'builder.pyz')" 26 - python3 builder.pyz build --project aws-crt-java downstream 27 post_build: 28 commands: 29 - echo Build completed on `date` 30