Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed May 22, 2024
1 parent 1e4e328 commit caa8805
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,26 @@ on:
- feature/ahead-of-time-compiler

jobs:
find_version:
name: Find IGUANA version number
runs-on: ubuntu-latest
outputs:
iguana_version: ${{ steps.step_find.outputs.iguana_version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
cache: 'maven'
- name: 'Find IGUANA version'
run: echo "iguana_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
id: step_find

compile_jar:
name: Compile Jar executable
runs-on: ubuntu-latest
needs: find_version
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand All @@ -23,12 +40,12 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: 'iguana-jar'
path: 'target/iguana-*.jar'

path: 'target/iguana-${{ needs.find_version.outputs.iguana_version }}.jar'

compile_native:
name: Compile Native executable
runs-on: ubuntu-latest
needs: find_version
steps:
- uses: actions/checkout@v3
- name: Set up GraalVM
Expand All @@ -44,5 +61,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: 'iguana-native'
path: 'target/iguana-*.*.*'
path: 'target/iguana-${{ needs.find_version.outputs.iguana_version }}'

0 comments on commit caa8805

Please sign in to comment.