Skip to content

Commit

Permalink
Fix GitHub workflow (#257)
Browse files Browse the repository at this point in the history
* Update GitHub workflow

* Fix another workflow too

* Cancel last jobs and activate native test
  • Loading branch information
nck-mlcnv authored Jul 26, 2024
1 parent 1f4bb16 commit f85fe77
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Tests

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
Expand Down Expand Up @@ -31,15 +35,21 @@ 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:
- uses: actions/checkout@v4
- 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
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@
--no-fallback
-O3
-H:-UseCompressedReferences
-H:+UnlockExperimentalVMOptions
</buildArgs>
<metadataRepository>
<enabled>true</enabled>
Expand Down

0 comments on commit f85fe77

Please sign in to comment.