File tree 2 files changed +38
-0
lines changed
2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,31 @@ phases:
16
16
install :
17
17
runtime-versions :
18
18
java : corretto11
19
+ commands :
20
+ - git submodule update --init submodules/MaterialProviders
21
+ # Get Dafny
22
+ - curl https://github.com/dafny-lang/dafny/releases/download/v4.2.0/dafny-4.2.0-x64-ubuntu-20.04.zip -L -o dafny.zip
23
+ - unzip -qq dafny.zip && rm dafny.zip
24
+ - export PATH="$PWD/dafny:$PATH"
25
+ # Get Gradle 7.6
26
+ - curl https://services.gradle.org/distributions/gradle-7.6-all.zip -L -o gradle.zip
27
+ - unzip -qq gradle.zip && rm gradle.zip
28
+ - export PATH="$PWD/gradle-7.6/bin:$PATH"
19
29
pre_build :
20
30
commands :
21
31
- git checkout $BRANCH
22
32
- export SETTINGS_FILE=$(pwd)/codebuild/release/settings.xml
23
33
- aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys-Release --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz
24
34
- tar -xvf ~/mvn_gpg.tgz -C ~
35
+ # Build and deploy TestVectorsAwsCryptographicMaterialProviders to maven local
36
+ - cd submodules/MaterialProviders
37
+ - git checkout $BRANCH
38
+ - cd TestVectorsAwsCryptographicMaterialProviders/
39
+ # This works because `node` is installed by default on GHA runners
40
+ - CORES=$(node -e 'console.log(os.cpus().length)')
41
+ - make build_java CORES=$CORES
42
+ - ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
43
+ - cd $CODEBUILD_SRC_DIR
25
44
build :
26
45
commands :
27
46
- |
Original file line number Diff line number Diff line change @@ -18,13 +18,32 @@ phases:
18
18
install :
19
19
runtime-versions :
20
20
java : corretto11
21
+ commands :
22
+ - git submodule update --init submodules/MaterialProviders
23
+ # Get Dafny
24
+ - curl https://github.com/dafny-lang/dafny/releases/download/v4.2.0/dafny-4.2.0-x64-ubuntu-20.04.zip -L -o dafny.zip
25
+ - unzip -qq dafny.zip && rm dafny.zip
26
+ - export PATH="$PWD/dafny:$PATH"
27
+ # Get Gradle 7.6
28
+ - curl https://services.gradle.org/distributions/gradle-7.6-all.zip -L -o gradle.zip
29
+ - unzip -qq gradle.zip && rm gradle.zip
30
+ - export PATH="$PWD/gradle-7.6/bin:$PATH"
21
31
pre_build :
22
32
commands :
23
33
- export SETTINGS_FILE=$(pwd)/codebuild/release/settings.xml
24
34
- export CODEARTIFACT_TOKEN=$(aws codeartifact get-authorization-token --domain $DOMAIN --domain-owner $ACCOUNT --query authorizationToken --output text --region ${REGION})
25
35
- export CODEARTIFACT_REPO_URL=https://${DOMAIN}-${ACCOUNT}.d.codeartifact.${REGION}.amazonaws.com/maven/${REPOSITORY}
26
36
- aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys-Release --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz
27
37
- tar -xvf ~/mvn_gpg.tgz -C ~
38
+ # Build and deploy TestVectorsAwsCryptographicMaterialProviders to maven local
39
+ - cd submodules/MaterialProviders
40
+ - git checkout $BRANCH
41
+ - cd TestVectorsAwsCryptographicMaterialProviders/
42
+ # This works because `node` is installed by default on GHA runners
43
+ - CORES=$(node -e 'console.log(os.cpus().length)')
44
+ - make build_java CORES=$CORES
45
+ - ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
46
+ - cd $CODEBUILD_SRC_DIR
28
47
build :
29
48
commands :
30
49
- VERSION_HASH="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$CODEBUILD_RESOLVED_SOURCE_VERSION"
You can’t perform that action at this time.
0 commit comments