This repository was archived by the owner on Jun 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
ultralight-java-gpu-native Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CI
22on : [push]
3-
3+
44jobs :
55 build-binaries-unix :
66 strategy :
6565 - name : Upload artifacts
6666 uses : actions/upload-artifact@v1
6767 with :
68- name : native-binaries
69- path : artifacts
68+ name : native-binaries-ultralight
69+ path : native-binaries/ultralight
7070
7171 build-jars :
7272 needs : [build-binaries-unix, build-binaries-windows]
@@ -86,19 +86,19 @@ jobs:
8686 - name : Download existing artifacts
8787 uses : actions/download-artifact@v1
8888 with :
89- name : native-binaries
90- path : native-binaries
89+ name : native-binaries-ultralight
90+ path : native-binaries/ultralight
9191 - name : Make gradlew executable
9292 run : " chmod +x gradlew"
9393 - name : Build base with gradle
94- run : " ./gradlew -PCI=true -PnativeBinaryExternalDir =native-binaries ultralight-java-base:build"
94+ run : " ./gradlew -PCI=true -Pultralight-java.base.native-binaries-folder =native-binaries/ultralight ultralight-java-base:build"
9595 - name : Build lwjgl3-opengl example with gradle
96- run : " ./gradlew -PCI=true -PnativeBinaryExternalDir =native-binaries example:lwjgl3-opengl:build"
96+ run : " ./gradlew -PCI=true -Pultralight-java.base.native-binaries-folder =native-binaries/ultralight example:lwjgl3-opengl:build"
9797 - name : Check license
9898 run : " ./gradlew licenseCheck"
9999 - name : Deploy to OSSHR
100100 if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'
101- run : " ./gradlew -PCI=true -PenableSigning -PnativeBinaryExternalDir =native-binaries publish"
101+ run : " ./gradlew -PCI=true -PenableSigning -Pultralight-java.base.native-binaries-folder =native-binaries/ultralight publish"
102102 env :
103103 SIGNING_KEY : ${{ secrets.signingKey }}
104104 SIGNING_PASSWORD : ${{ secrets.signingPassword }}
Original file line number Diff line number Diff line change 1515
1616processResources {
1717 dependsOn(' :ultralight-java-native:build' )
18- from(file(System . getProperties(). getOrDefault(" ultralight-java.base.native-binaries-folder" , project(" :ultralight-java-native" ). buildDir. toPath(). toString() + " /nativeBinaries" ). toString())) {
18+ from(file(project . getProperties(). getOrDefault(" ultralight-java.base.native-binaries-folder" , project(" :ultralight-java-native" ). buildDir. toPath(). toString() + " /nativeBinaries" ). toString())) {
1919 into " native-binaries"
2020 }
2121}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ task build(type: CMakeBuildTask) {
3333 ]
3434 }
3535
36- def nativeBinariesDir = file(System . getProperties(). getOrDefault(" ultralight-java.gpu.native-binaries-folder" , " $buildDir /nativeBinaries" ). toString())
36+ def nativeBinariesDir = file(project . getProperties(). getOrDefault(" ultralight-java.gpu.native-binaries-folder" , " $buildDir /nativeBinaries" ). toString())
3737 variables = [
3838 " CMAKE_BUILD_TYPE" : java.util.Optional . of(" Release" ),
3939 " CMAKE_RUNTIME_OUTPUT_DIRECTORY" : java.util.Optional . of(nativeBinariesDir. absolutePath),
Original file line number Diff line number Diff line change 1515
1616processResources {
1717 dependsOn(' :ultralight-java-gpu-native:build' )
18- from(file(System . getProperties(). getOrDefault(" ultralight-java.gpu.native-binaries-folder" , project(" :ultralight-java-gpu-native" ). buildDir. toPath(). toString() + " /nativeBinaries" ). toString())) {
18+ from(file(project . getProperties(). getOrDefault(" ultralight-java.gpu.native-binaries-folder" , project(" :ultralight-java-gpu-native" ). buildDir. toPath(). toString() + " /nativeBinaries" ). toString())) {
1919 into " native-binaries"
2020 }
2121}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ task build(type: CMakeBuildTask) {
3434 }
3535
3636
37- def nativeBinariesDir = file(System . getProperties(). getOrDefault(" ultralight-java.base.native-binaries-folder" , " $buildDir /nativeBinaries" ). toString())
37+ def nativeBinariesDir = file(project . getProperties(). getOrDefault(" ultralight-java.base.native-binaries-folder" , " $buildDir /nativeBinaries" ). toString())
3838 variables = [
3939 " CMAKE_BUILD_TYPE" : java.util.Optional . of(" Release" ),
4040 " CMAKE_RUNTIME_OUTPUT_DIRECTORY" : java.util.Optional . of(nativeBinariesDir. absolutePath),
You can’t perform that action at this time.
0 commit comments