Skip to content

Commit

Permalink
what if we add arch
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Jan 7, 2025
1 parent bb8b3d7 commit 58b731f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion codebuild/cd/musl-arm64-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ phases:
build:
commands:
- cd aws-crt-java
- ./codebuild/cd/musl-linux-build.sh aws-crt-alpine-3.16-arm64 linux-aarch_64-musl linux/aarch64
- ./codebuild/cd/musl-linux-build.sh aws-crt-alpine-3.16-arm64 linux-aarch_64-musl linux/aarch64 aarch64

post_build:
commands:
Expand Down
2 changes: 1 addition & 1 deletion codebuild/cd/musl-armv7-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ phases:
commands:
- cd aws-crt-java
- export AWS_CRT_ARCH=armv7
- ./codebuild/cd/musl-linux-build.sh aws-crt-alpine-3.16-armv7 linux-armv7-musl linux/arm/v7
- ./codebuild/cd/musl-linux-build.sh aws-crt-alpine-3.16-armv7 linux-armv7-musl linux/arm/v7 armv7

post_build:
commands:
Expand Down
4 changes: 3 additions & 1 deletion codebuild/cd/musl-linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ CLASSIFIER=$1
shift
PLATFORM=$1
shift
ARCH=$1
shift

# Pry the builder version this CRT is using out of ci.yml
BUILDER_VERSION=$(cat .github/workflows/ci.yml | grep 'BUILDER_VERSION:' | sed 's/\s*BUILDER_VERSION:\s*\(.*\)/\1/')
Expand All @@ -17,7 +19,7 @@ aws ecr get-login-password | docker login 123124136734.dkr.ecr.us-east-1.amazona
export DOCKER_IMAGE=123124136734.dkr.ecr.us-east-1.amazonaws.com/${IMAGE_NAME}:${BUILDER_VERSION}

export BRANCH_TAG=$(git describe --tags)
docker run --mount type=bind,src=$(pwd),dst=/root/aws-crt-java --env AWS_DEFAULT_REGION --env CXXFLAGS --env AWS_CRT_ARCH --platform=${PLATFORM} $DOCKER_IMAGE --version=${BUILDER_VERSION} build -p aws-crt-java --classifier ${CLASSIFIER} --branch ${BRANCH_TAG} run_tests=false
docker run --mount type=bind,src=$(pwd),dst=/root/aws-crt-java --env AWS_DEFAULT_REGION --env CXXFLAGS --env AWS_CRT_ARCH --platform=${PLATFORM} $DOCKER_IMAGE --version=${BUILDER_VERSION} build -p aws-crt-java --target linux-${ARCH} --classifier ${CLASSIFIER} --branch ${BRANCH_TAG} run_tests=false
docker container prune -f

# Upload the artifacts to S3
Expand Down
2 changes: 1 addition & 1 deletion codebuild/cd/musl-x64-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ phases:
build:
commands:
- cd aws-crt-java
- ./codebuild/cd/musl-linux-build.sh aws-crt-alpine-3.16-x64 linux-x86_64-musl linux/amd64
- ./codebuild/cd/musl-linux-build.sh aws-crt-alpine-3.16-x64 linux-x86_64-musl linux/amd64 amd64

post_build:
commands:
Expand Down

0 comments on commit 58b731f

Please sign in to comment.