diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8e1912a0..c4280bff 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -54,8 +54,9 @@ jobs: - name: Set up GraalVM uses: graalvm/setup-graalvm@v1 with: - java-version: '21' - cache: 'maven' + java-version: 22 + components: native-image + cache: maven - name: 'Compile native-binary' run: 'mvn -Dagent=true -Pnative package' - name: 'Upload artifact' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 400e0a52..3931192b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,9 @@ name: Tests +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: push: branches: @@ -31,7 +35,6 @@ jobs: # Only run for pull request on main or if pushed to develop compile_native: - if: github.base_ref == 'main' || github.event_name == 'push' name: Test Native Executable Compilation runs-on: ubuntu-latest steps: @@ -39,7 +42,14 @@ jobs: - name: Set up GraalVM uses: graalvm/setup-graalvm@v1 with: - java-version: '21' - cache: 'maven' + java-version: 22 + components: native-image + cache: maven - name: 'Compile native-binary and run tests' run: 'mvn -Pnative -Dagent=true package' + - name: 'Upload artifact' + uses: actions/upload-artifact@v4 + with: + name: 'iguana-native' + path: 'target/iguana' + if-no-files-found: error diff --git a/pom.xml b/pom.xml index 24c2dd3b..0d15dbec 100644 --- a/pom.xml +++ b/pom.xml @@ -314,6 +314,7 @@ --no-fallback -O3 -H:-UseCompressedReferences + -H:+UnlockExperimentalVMOptions true