From caa8805b8cc3ff09ffd004796a5bc2dc7ac79df6 Mon Sep 17 00:00:00 2001 From: Nick Molcanov <32801560+nck-mlcnv@users.noreply.github.com> Date: Wed, 22 May 2024 11:44:45 +0000 Subject: [PATCH] Update workflow --- .github/workflows/test.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9475dbcb5..a345b7082 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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 @@ -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 }}'