Skip to content

include helloworld micro micro benchmark #49

include helloworld micro micro benchmark

include helloworld micro micro benchmark #49

name: JVM Knative Quarkus Bench Workflow
on:
push:
paths-ignore:
- '**.md'
- '**.MD'
- '**/.gitignore'
- 'LICENSE'
- 'samples/**'
- '.github/workflows/github-action-native.yml'
jobs:
build-jvm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: login to github container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: make sure repository is lowercase
run: echo "SAFE_REPO_NAME=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- run: echo "Event ${{ github.event_name }} triggered run on Github ${{ runner.os }} server."
- run: echo "Branch ${{ github.ref }} and repo ${SAFE_REPO_NAME}."
- name: Check out repo code
uses: actions/checkout@v3
- run: echo "${{ github.repository }} repository cloned to runner."
- name: Build JVM images
run:
cd ${{ github.workspace }} && mvn clean package -Dquarkus.container-image.registry=ghcr.io -Dquarkus.container-image.group=${SAFE_REPO_NAME}
- run: echo "JVM build status ${{ job.status }}."
- name: Push the images
run:
cd ${{ github.workspace }} && mvn package -Dquarkus.container-image.registry=ghcr.io -Dquarkus.container-image.group=${SAFE_REPO_NAME} -Dquarkus.container-image.push=true
- run: echo "Image push status ${{ job.status }}."
- name: Build Environment Version Information
run: |
echo "OS version:"
cat /etc/issue.net
echo
echo "java version:"
java --version
echo
echo "mvn version:"
mvn -v
echo
echo "cc version:"
cc -v