Skip to content

Commit

Permalink
use one single source to determine the builder version (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK authored Jun 7, 2023
1 parent 89079c8 commit 189a75d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions codebuild/linux-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ version: 0.2
env:
shell: bash
variables:
BUILDER_VERSION: v0.9.45
BUILDER_SOURCE: releases
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
PACKAGE_NAME: aws-crt-java

Expand All @@ -20,6 +18,9 @@ phases:
- echo Build started on `date`
# Update the submodules
- git submodule update --init
- export BUILDER_VERSION=$(cat .github/workflows/ci.yml | grep 'BUILDER_VERSION:' | sed 's/\s*BUILDER_VERSION:\s*\(.*\)/\1/')
- export BUILDER_SOURCE=$(cat .github/workflows/ci.yml | grep 'BUILDER_SOURCE:' | sed 's/\s*BUILDER_SOURCE:\s*\(.*\)/\1/')
- echo "Using builder version='${BUILDER_VERSION}' source='${BUILDER_SOURCE}'"
# Build library and test
- python3 -c "from urllib.request import urlretrieve; urlretrieve('$BUILDER_HOST/$BUILDER_SOURCE/$BUILDER_VERSION/builder.pyz?run=$CODEBUILD_BUILD_ID', 'builder.pyz')"
- python3 builder.pyz build --project aws-crt-java downstream
Expand Down

0 comments on commit 189a75d

Please sign in to comment.