diff --git a/.github/workflows/graal.yml b/.github/workflows/graal.yml new file mode 100644 index 0000000..52bd0fe --- /dev/null +++ b/.github/workflows/graal.yml @@ -0,0 +1,31 @@ +name: GraalVM build +on: [push, pull_request] +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - uses: graalvm/setup-graalvm@v1 + with: + java-version: '21' + distribution: 'graalvm' + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Print Environment State + run: | + echo "GRAALVM_HOME: $GRAALVM_HOME" + echo "JAVA_HOME: $JAVA_HOME" + java --version + native-image --version + - name: Build + run: ./gradlew.bat nativeCompile + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: executable + path: ./build/native/nativeCompile/**.exe + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: ./build/native/nativeCompile/**.exe +