From 3860a3bc520c0aa4831163d1536b5e4af16c98a6 Mon Sep 17 00:00:00 2001 From: Nick Molcanov <32801560+nck-mlcnv@users.noreply.github.com> Date: Wed, 22 May 2024 11:16:53 +0200 Subject: [PATCH] Add test workflow --- .github/workflows/test.yml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..51b989e15 --- /dev/null +++ b/.github/workflows/test.yml @@ -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-*.*.*' +