2222 steps :
2323 - uses : actions/checkout@v4
2424
25- - name : Set up JDK 21
25+ - name : Setup Java
2626 uses : actions/setup-java@v4
2727 with : { java-version: '21', distribution: 'temurin' }
2828
@@ -31,51 +31,27 @@ jobs:
3131 - name : Setup Gradle
3232 uses : gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
3333
34- - name : Compile to Native Binary
34+ - name : Compile to Jar
3535 run : ./gradlew build
3636
3737 - name : Upload Build Artifacts
3838 uses : actions/upload-artifact@v4
39- with : { path: build/native/nativeCompile/kt-encabulator * }
39+ with : { path: build/libs/ * }
4040 # fi
4141
42- build-native-linux :
43- runs-on : ubuntu-latest
44- permissions : { contents: read }
45-
46- steps :
47- - uses : actions/checkout@v4
42+ build-native :
43+ runs-on : ${{ matrix.os }}
4844
49- - name : Set up JDK 21
50- uses : actions/setup-java@v4
51- with : { java-version: '21', distribution: 'graalvm-ce' }
52-
53- # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
54- # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
55- - name : Setup Gradle
56- uses : gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
57-
58- - name : Compile to Native Binary
59- run : ./gradlew nativeCompile
60-
61- - name : Upload Build Artifacts
62- uses : actions/upload-artifact@v4
63- with : { path: build/native/nativeCompile/kt-encabulator* }
64- # fi
65-
66- build-native-windows :
67- runs-on : windows-latest
68- permissions : { contents: read }
45+ strategy :
46+ matrix : { os: [ windows-latest, ubuntu-latest ] }
6947
7048 steps :
7149 - uses : actions/checkout@v4
7250
73- - name : Set up JDK 21
51+ - name : Setup Java
7452 uses : actions/setup-java@v4
75- with : { java-version: '21', distribution: 'graalvm-ce ' }
53+ with : { java-version: '21', distribution: 'graalvm' }
7654
77- # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
78- # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
7955 - name : Setup Gradle
8056 uses : gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
8157
0 commit comments