Skip to content

Commit

Permalink
Add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed May 22, 2024
1 parent f10c504 commit 3860a3b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Workflow Test

on:
push:
branches:
- feature/ahead-of-time-compiler

jobs:
compile_jar:
name: Compile Jar executable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
cache: 'maven'
- name: 'Compile jar.'
run: 'mvn -DskipTests package'
- name: 'Upload artifact.'
uses: actions/upload-artifact@v4
with:
name: 'iguana-jar'
path: 'target/iguana-*.jar'


compile_native:
name: Compile Native executable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
cache: 'maven'
- name: 'Generate configuration files.'
run: './graalvm/generate-config.sh'
- name: 'Compile native-binary.'
run: 'mvn -DskipTests package -Pnative'
- name: 'Upload artifact.'
uses: actions/upload-artifact@v4
with:
name: 'iguana-jar'
path: 'target/iguana-*.*.*'

0 comments on commit 3860a3b

Please sign in to comment.