Skip to content

Commit

Permalink
fix:fix release
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Kai <281165273grape@gmail.com>
  • Loading branch information
GrapeBaBa committed Dec 16, 2023
1 parent 426b489 commit 34d0923
Showing 1 changed file with 10 additions and 23 deletions.
33 changes: 10 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: GraalVM Native Image

on:
push:
tags:
- '*'
paths-ignore:
- LICENSE
- '*.md'
release:
types: [created]

defaults:
run:
Expand All @@ -31,7 +27,6 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ '22.3.2' ]
java-version: [ '21' ]
os: [ macos-latest ]

Expand All @@ -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'
Expand All @@ -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:
Expand All @@ -78,7 +70,6 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ '22.3.2' ]
java-version: [ '21' ]
os: [ windows-latest ]

Expand All @@ -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'
Expand All @@ -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:
Expand All @@ -122,7 +112,6 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ '22.3.2' ]
java-version: [ '21' ]
os: [ ubuntu-latest ]

Expand All @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 34d0923

Please sign in to comment.