Skip to content

Update main.yml

Update main.yml #6

Workflow file for this run

name: GraalVM Community Edition build
on:
push:
branches:
- native-image
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
version: '22.2.3'
java-version: '11'
components: 'espresso,native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Example step
run: |
git submodule init
git submodule update
- name: Example step
run: |
export JAVA_CLASSPATH=${{ github.workspace }}/oap-server/analyzer/meter-analyzer/target/classes/*
- name: Example step
run: |
./mvnw -P native clean package -Dmaven.test.skip
- name: Example step
run: |
cd ${{ github.workspace }}/oap-server/server-starter/target
./server-starter -Dorg.graalvm.home="$GRAALVM_HOME"
- name: upload result
uses: actions/upload-artifact@v1
with:
name: my-artifact
path: ${{ github.workspace }}/target