-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
3 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,20 @@ | ||
version: 0.2 | ||
phases: | ||
install: | ||
commands: | ||
pre_build: | ||
commands: | ||
- export CC=gcc | ||
build: | ||
commands: | ||
- mkdir linux-arm64-musl | ||
- cd aws-crt-nodejs | ||
- ./continuous-delivery/musl-linux-build.sh aws-crt-alpine-3.16-arm64 linux-aarch_64-musl | ||
- cp -r dist/bin/linux-arm64-musl/* ../linux-arm64-musl/ | ||
|
||
post_build: | ||
commands: | ||
|
||
artifacts: | ||
files: | ||
- 'linux-arm64-musl/**/*' |
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,19 @@ | ||
#!/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 BRANCH_TAG=$(git describe --tags) | ||
docker run --mount type=bind,src=$(pwd),dst=/root/aws-crt-nodejs --env AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY --env AWS_DEFAULT_REGION --env CXXFLAGS --env AWS_CRT_ARCH $DOCKER_IMAGE --version=${BUILDER_VERSION} build -p aws-crt-nodejs --classifier ${CLASSIFIER} --branch ${BRANCH_TAG} run_tests=false | ||
docker container prune -f |