@@ -7,41 +7,6 @@ permissions:
77 contents : read
88
99jobs :
10- build-linux :
11- environment : UnityTranslate Build
12- runs-on : ubuntu-latest
13-
14- steps :
15- - uses : actions/checkout@v4
16- - name : Set up JDK 17
17- uses : actions/setup-java@v3
18- with :
19- java-version : ' 17'
20- distribution : ' temurin'
21- - uses : actions-rust-lang/setup-rust-toolchain@v1
22- with :
23- rustflags : ' '
24- # Taken from https://github.com/CaffeineMC/sodium-fabric/blob/1.19.3/dev/.github/workflows/gradle.yml
25- - name : Cache/Uncache
26- uses : actions/cache@v4
27- with :
28- path : |
29- ~/.gradle/caches
30- ~/.gradle/loom-cache
31- ~/.gradle/wrapper
32- key : ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
33- restore-keys : |
34- ${{ runner.os }}-gradle-
35- - name : Build and publish artifacts
36- run : ./gradlew publish
37- env :
38- MAVEN_USER : ${{ secrets.MAVEN_USER }}
39- MAVEN_PASS : ${{ secrets.MAVEN_PASS }}
40- - name : Upload build artifacts
41- uses : actions/upload-artifact@v4
42- with :
43- name : Linux x86-64 Natives
44- path : native/build/libs/UnityTranslateLib-*.jar
4510 build-windows :
4611 environment : UnityTranslate Build
4712 runs-on : windows-latest
5621 - uses : actions-rust-lang/setup-rust-toolchain@v1
5722 with :
5823 rustflags : ' '
24+ target : ' x86_64-unknown-linux-gnu'
5925 # Taken from https://github.com/CaffeineMC/sodium-fabric/blob/1.19.3/dev/.github/workflows/gradle.yml
6026 - name : Cache/Uncache
6127 uses : actions/cache@v4
@@ -68,12 +34,12 @@ jobs:
6834 restore-keys : |
6935 ${{ runner.os }}-gradle-
7036 - name : Build and publish artifacts
71- run : ./gradlew :native: publish
37+ run : ./gradlew publish
7238 env :
7339 MAVEN_USER : ${{ secrets.MAVEN_USER }}
7440 MAVEN_PASS : ${{ secrets.MAVEN_PASS }}
7541 - name : Upload build artifacts
7642 uses : actions/upload-artifact@v4
7743 with :
78- name : Windows x86-64 Natives
44+ name : Natives JAR
7945 path : native/build/libs/UnityTranslateLib-*.jar
0 commit comments