Skip to content

Commit bf2d8c1

Browse files
committed
Add Linux natives
1 parent 69a76ea commit bf2d8c1

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ jobs:
3737
- name: Upload build artifacts
3838
uses: actions/upload-artifact@v4
3939
with:
40-
name: Linux x86-64 Targets
41-
path: native/target/*
42-
# name: Linux x86-64 Natives
43-
# path: native/build/libs/UnityTranslateLib-*.jar
40+
name: Linux x86-64 Natives
41+
path: native/build/libs/UnityTranslateLib-*.jar
4442
build-linux-arm64:
4543
environment: UnityTranslate Build
4644
runs-on: ubuntu-24.04-arm
@@ -71,10 +69,8 @@ jobs:
7169
- name: Upload build artifacts
7270
uses: actions/upload-artifact@v4
7371
with:
74-
name: Linux arm64 Targets
75-
path: native/target/*
76-
# name: Linux arm64 Natives
77-
# path: native/build/libs/UnityTranslateLib-*.jar
72+
name: Linux arm64 Natives
73+
path: native/build/libs/UnityTranslateLib-*.jar
7874
build-osx:
7975
environment: UnityTranslate Build
8076
runs-on: macos-latest

native/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ data class RustPlatform(
3333

3434
val RUST_TARGETS = listOf(
3535
RustPlatform("aarch64-apple-darwin", "osx", "aarch64", listOf()), // macOS arm64
36-
RustPlatform("aarch64-unknown-linux-gnu", "linux", "aarch64", listOf()), // Linux aarch64
36+
RustPlatform("aarch64-unknown-linux-gnu", "linux", "aarch64", listOf("libUnityTranslateLib.so")), // Linux aarch64
3737
RustPlatform("x86_64-pc-windows-msvc", "windows", "amd64", listOf("UnityTranslateLib.dll")), // Windows x86-64
38-
RustPlatform("x86_64-unknown-linux-gnu", "linux", "amd64", listOf()), // Linux x86-64
38+
RustPlatform("x86_64-unknown-linux-gnu", "linux", "amd64", listOf("libUnityTranslateLib.so")), // Linux x86-64
3939
)
4040

4141
open class ExecutableTask @Inject constructor(@Internal val execOperations: ExecOperations) : DefaultTask()

0 commit comments

Comments
 (0)