diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 787bca71..dcaf4743 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,8 @@ name: GraalVM Native Image on: - push: - tags: - - '*' - paths-ignore: - - LICENSE - - '*.md' + release: + types: [created] defaults: run: @@ -31,7 +27,6 @@ jobs: strategy: fail-fast: false matrix: - version: [ '22.3.2' ] java-version: [ '21' ] os: [ macos-latest ] @@ -47,7 +42,6 @@ jobs: - name: ☕ Setup GraalVM Build uses: graalvm/setup-graalvm@v1 with: - version: ${{ matrix.version }} java-version: ${{ matrix.java-version }} github-token: ${{ secrets.GITHUB_TOKEN }} distribution: 'graalvm' @@ -58,18 +52,16 @@ jobs: - name: 🏗️ Native Image Build & Test id: native-build run: | - echo $JAVA_HOME - echo $GRAALVM_HOME - ./gradlew buildBinary - mv hildr-node/build/binary/hildr-node hildr-node/build/binary/hildr-node-osx - ls -ltrh hildr-node/build/binary/hildr-node-osx + ./gradlew nativeCompile + mv hildr-node/build/native/nativeCompile/hildr-node hildr-node/build/native/nativeCompile/hildr-node-osx + ls -ltrh hildr-node/build/native/nativeCompile/hildr-node-osx - name: 📤 Upload ${{ matrix.os }} native image uses: actions/upload-artifact@v3 with: name: hildr-node-osx path: | - hildr-node/build/binary/hildr-node-osx + hildr-node/build/native/nativeCompile/hildr-node-osx if-no-files-found: error native-build-windows: @@ -78,7 +70,6 @@ jobs: strategy: fail-fast: false matrix: - version: [ '22.3.2' ] java-version: [ '21' ] os: [ windows-latest ] @@ -94,7 +85,6 @@ jobs: - name: ☕ Setup GraalVM Build uses: graalvm/setup-graalvm@v1 with: - version: ${{ matrix.version }} java-version: ${{ matrix.java-version }} github-token: ${{ secrets.GITHUB_TOKEN }} distribution: 'graalvm' @@ -105,15 +95,15 @@ jobs: - name: 🏗️ Native Image Build & Test id: native-build run: | - ./gradlew buildBinary - ls -ltrh hildr-node/build/binary/hildr-node.exe + ./gradlew nativeCompile + ls -ltrh hildr-node/build/native/nativeCompile/hildr-node.exe - name: 📤 Upload ${{ matrix.os }} native image uses: actions/upload-artifact@v3 with: name: hildr-node-windows path: | - hildr-node/build/binary/hildr-node.exe + hildr-node/build/native/nativeCompile/hildr-node.exe if-no-files-found: error native-build-linux: @@ -122,7 +112,6 @@ jobs: strategy: fail-fast: false matrix: - version: [ '22.3.2' ] java-version: [ '21' ] os: [ ubuntu-latest ] @@ -138,7 +127,6 @@ jobs: - name: ☕ Setup GraalVM Build uses: graalvm/setup-graalvm@v1 with: - version: ${{ matrix.version }} java-version: ${{ matrix.java-version }} github-token: ${{ secrets.GITHUB_TOKEN }} distribution: 'graalvm' @@ -174,14 +162,13 @@ jobs: - name: ☕ Setup GraalVM Build uses: graalvm/setup-graalvm@v1 with: - version: '22.3.2' java-version: '21' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} cache: 'gradle' native-image-musl: 'true' - native-image-job-reports: 'true' set-java-home: 'true' + native-image-job-reports: 'true' - name: 🏗️ Build static image with musl libc id: native-build