Skip to content

java-native-image

java-native-image #27

Workflow file for this run

---
name: "tagged-linux"
on:
push:
tags:
- "v*"
jobs:
tagged-linux:
name: "Tagged linux"
runs-on: ubuntu-latest
steps:
- uses: graalvm/setup-graalvm@v1
with:
version: 'latest'
java-version: '17'
components: 'native-image'
github-token: "${{ secrets.GH_TOKEN }}"
- uses: actions/checkout@v3
with:
ref: '${{github.ref_name}}'
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build Image
run: ./mvnw -Pnative native:compile
- uses: ncipollo/release-action@v1
with:
artifacts: "./target/initializr-plusplus-linux-x86_64,LICENSE"
allowUpdates: true
token: ${{ secrets.GH_TOKEN }}