Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 3 additions & 76 deletions .github/workflows/runtime-interface-client_merge_to_main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# This workflow will be triggered on merge to the main branch if
# aws-lambda-java-runtime-interface-client package was changed
#
# It will publish artifacts to CodeArtifact repository, specified by properties defined in GitHub repo secrets:
# CODE_ARTIFACT_REPO_ACCOUNT, AWS_REGION, CODE_ARTIFACT_REPO_NAME, CODE_ARTIFACT_DOMAIN
# and will assume role specified by AWS_ROLE
#
# Prerequisite setup:
# https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services
# It measures unit-test coverage on both native architectures and uploads it to
# Codecov.

name: Publish artifact for aws-lambda-java-runtime-interface-client
name: Coverage for aws-lambda-java-runtime-interface-client

on:
workflow_dispatch:
Expand All @@ -20,75 +16,6 @@ on:

jobs:

publish:
runs-on: ubuntu-latest

permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Set up JDK 1.8
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
java-version: 8
distribution: corretto
cache: maven

- name: Set up QEMU
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
with:
install: true

- name: Available buildx platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Build and install serialization dependency locally
working-directory: ./aws-lambda-java-serialization
run: mvn clean install

- name: Test Runtime Interface Client xplatform build - Run 'build' target
working-directory: ./aws-lambda-java-runtime-interface-client
run: make build
env:
IS_JAVA_8: true

- name: Issue AWS credentials
if: env.ENABLE_SNAPSHOT != null
env:
ENABLE_SNAPSHOT: ${{ secrets.ENABLE_SNAPSHOT }}
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE }}
role-session-name: GitHubActionsPublishPackage
role-duration-seconds: 900

- name: Prepare codeartifact properties
if: env.ENABLE_SNAPSHOT != null
env:
ENABLE_SNAPSHOT: ${{ secrets.ENABLE_SNAPSHOT }}
working-directory: ./aws-lambda-java-runtime-interface-client/ric-dev-environment
run: |
cat <<EOF > codeartifact-properties.mk
CODE_ARTIFACT_REPO_ACCOUNT=${{ secrets.AWS_ACCOUNT }}
CODE_ARTIFACT_REPO_REGION=${{ env.AWS_REGION }}
CODE_ARTIFACT_REPO_NAME=${{ secrets.CODE_ARTIFACT_REPO_NAME }}
CODE_ARTIFACT_DOMAIN=${{ secrets.AWS_CODEARTIFACT_DOMAIN }}
EOF
- name: Publish
if: env.ENABLE_SNAPSHOT != null
working-directory: ./aws-lambda-java-runtime-interface-client
env:
ENABLE_SNAPSHOT: ${{ secrets.ENABLE_SNAPSHOT }}
run: make publish

# Coverage is measured on both native architectures (x86_64 and aarch64) so
# the coverage recorded for a merge to main matches what the PR build recorded
# (the union of both archs). Uploading a single x86_64 report here previously
Expand Down
1 change: 0 additions & 1 deletion aws-lambda-java-runtime-interface-client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
compile-flags.txt
ric-dev-environment/codeartifact-properties.mk

# aws-lambda-cpp prebuilt lib + headers, fetched and staged at build time
src/main/jni/deps/aws-lambda-cpp/
12 changes: 0 additions & 12 deletions aws-lambda-java-runtime-interface-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ else
EXTRA_LOAD_ARG :=
endif

# This optional module exports MAVEN_REPO_URL, MAVEN_REPO_USERNAME and MAVEN_REPO_PASSWORD environment variables
# making it possible to publish resulting artifacts to a codeartifact maven repository
-include ric-dev-environment/codeartifact-repo.mk

.PHONY: target
target:
$(info ${HELP_MESSAGE})
Expand Down Expand Up @@ -90,14 +86,6 @@ build-aarch64:
mvn install -P linux-aarch64 $(EXTRA_LOAD_ARG)
mvn install -P linux_musl-aarch64 $(EXTRA_LOAD_ARG)

.PHONY: publish
publish:
./ric-dev-environment/publish_snapshot.sh

.PHONY: publish
test-publish:
./ric-dev-environment/test-platform-specific-jar-snapshot.sh

.PHONY: test-rie
test-rie:
./scripts/test-rie.sh "EchoHandler::handleRequest"
Expand Down
9 changes: 0 additions & 9 deletions aws-lambda-java-runtime-interface-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -460,15 +460,6 @@
</plugins>
</build>
</profile>
<profile>
<id>ci-repo</id>
<distributionManagement>
<repository>
<id>ci-repo</id>
<url>${env.MAVEN_REPO_URL}</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>linux-x86_64</id>
<properties>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading