-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Michael Graeb <[email protected]> Co-authored-by: Waqar Ahmed Khan <[email protected]>
- Loading branch information
1 parent
0c2388a
commit 83e1781
Showing
22 changed files
with
282 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
import Builder | ||
import sys | ||
import os | ||
import tempfile | ||
from builder.core.host import current_host | ||
|
||
# This action is used by the musl-linux-build.sh script to build the binaries for release. | ||
class BuildClassifier(Builder.Action): | ||
|
||
|
||
def run(self, env): | ||
crt_classifier = os.getenv("CRT_CLASSIFIER") | ||
if crt_classifier is not None: | ||
env.shell.exec("mvn", "-B", "install", "-DskipTests", "-Dshared-lib.skip=true", f"-Dcrt.classifier={crt_classifier}", check=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 0.2 | ||
phases: | ||
install: | ||
commands: | ||
pre_build: | ||
commands: | ||
- export CC=gcc | ||
build: | ||
commands: | ||
- cd aws-crt-java | ||
- ./codebuild/cd/musl-linux-build.sh aws-crt-alpine-3.16-arm64 linux-aarch_64-musl | ||
|
||
post_build: | ||
commands: | ||
|
||
artifacts: | ||
files: | ||
- 'dist/**/*' | ||
|
||
cache: | ||
paths: | ||
- '/root/.m2/**/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: 0.2 | ||
phases: | ||
install: | ||
commands: | ||
pre_build: | ||
commands: | ||
- export CC=gcc | ||
build: | ||
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 | ||
|
||
post_build: | ||
commands: | ||
|
||
artifacts: | ||
files: | ||
- 'dist/**/*' | ||
|
||
cache: | ||
paths: | ||
- '/root/.m2/**/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
IMAGE_NAME=$1 | ||
shift | ||
CLASSIFIER=$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/') | ||
echo "Using builder version ${BUILDER_VERSION}" | ||
|
||
aws ecr get-login-password | docker login 123124136734.dkr.ecr.us-east-1.amazonaws.com -u AWS --password-stdin | ||
export DOCKER_IMAGE=123124136734.dkr.ecr.us-east-1.amazonaws.com/${IMAGE_NAME}:${BUILDER_VERSION} | ||
export QEMU_IMAGE=123124136734.dkr.ecr.us-east-1.amazonaws.com/multiarch-qemu-user-static:latest | ||
docker run --rm --privileged ${QEMU_IMAGE} --reset -p yes | ||
|
||
|
||
export CRT_CLASSIFIER=${CLASSIFIER} | ||
export BRANCH_TAG=$(git describe --tags) | ||
docker run --mount type=bind,src=$(pwd),dst=/root/aws-crt-java --env AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY --env AWS_DEFAULT_REGION --env CXXFLAGS --env AWS_CRT_ARCH --env CRT_CLASSIFIER $DOCKER_IMAGE --version=${BUILDER_VERSION} build -p aws-crt-java --branch ${BRANCH_TAG} run_tests=false | ||
docker container prune -f | ||
|
||
# Upload the artifacts to S3 | ||
export GIT_TAG=$(git describe --tags) | ||
|
||
aws s3 cp --recursive --include "*.so" target/cmake-build/lib s3://aws-crt-java-pipeline/${GIT_TAG}/lib | ||
aws s3 cp target/ s3://aws-crt-java-pipeline/${GIT_TAG}/jar/ --recursive --exclude "*" --include "aws-crt*.jar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 0.2 | ||
phases: | ||
install: | ||
commands: | ||
pre_build: | ||
commands: | ||
- export CC=gcc | ||
build: | ||
commands: | ||
- cd aws-crt-java | ||
- ./codebuild/cd/musl-linux-build.sh aws-crt-alpine-3.16-x64 linux-x86_64-musl | ||
|
||
post_build: | ||
commands: | ||
|
||
artifacts: | ||
files: | ||
- 'dist/**/*' | ||
|
||
cache: | ||
paths: | ||
- '/root/.m2/**/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule aws-c-io
updated
3 files
+1 −1 | source/stream.c | |
+29 −25 | tests/CMakeLists.txt | |
+69 −25 | tests/stream_test.c |
Submodule aws-c-s3
updated
25 files
Oops, something went wrong.