Skip to content

Commit e0e4c1a

Browse files
committed
Disable all ARM compilations
At the moment, ct2rs doesn't seem to properly support ARM (or I somehow don't have it turned on), so I'm leaving it disabled for now.
1 parent d1f978c commit e0e4c1a

File tree

2 files changed

+6
-72
lines changed

2 files changed

+6
-72
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -39,72 +39,6 @@ jobs:
3939
with:
4040
name: Linux x86-64 Natives
4141
path: native/build/libs/UnityTranslateLib-*.jar
42-
build-linux-arm64:
43-
environment: UnityTranslate Build
44-
runs-on: ubuntu-24.04-arm
45-
46-
steps:
47-
- uses: actions/checkout@v4
48-
- name: Set up JDK 17
49-
uses: actions/setup-java@v3
50-
with:
51-
java-version: '17'
52-
distribution: 'temurin'
53-
- uses: actions-rust-lang/setup-rust-toolchain@v1
54-
with:
55-
rustflags: ''
56-
# Taken from https://github.com/CaffeineMC/sodium-fabric/blob/1.19.3/dev/.github/workflows/gradle.yml
57-
- name: Cache/Uncache
58-
uses: actions/cache@v4
59-
with:
60-
path: |
61-
~/.gradle/caches
62-
~/.gradle/loom-cache
63-
~/.gradle/wrapper
64-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
65-
restore-keys: |
66-
${{ runner.os }}-gradle-
67-
- name: Build artifacts
68-
run: ./gradlew :native:jar
69-
- name: Upload build artifacts
70-
uses: actions/upload-artifact@v4
71-
with:
72-
name: Linux arm64 Natives
73-
path: native/build/libs/UnityTranslateLib-*.jar
74-
build-osx:
75-
environment: UnityTranslate Build
76-
runs-on: macos-14
77-
78-
steps:
79-
- uses: actions/checkout@v4
80-
- name: Set up JDK 17
81-
uses: actions/setup-java@v3
82-
with:
83-
java-version: '17'
84-
distribution: 'temurin'
85-
- uses: actions-rust-lang/setup-rust-toolchain@v1
86-
with:
87-
rustflags: ''
88-
# Taken from https://github.com/CaffeineMC/sodium-fabric/blob/1.19.3/dev/.github/workflows/gradle.yml
89-
- name: Cache/Uncache
90-
uses: actions/cache@v4
91-
with:
92-
path: |
93-
~/.gradle/caches
94-
~/.gradle/loom-cache
95-
~/.gradle/wrapper
96-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
97-
restore-keys: |
98-
${{ runner.os }}-gradle-
99-
- name: Build artifacts
100-
run: ./gradlew :native:jar
101-
- name: Upload build artifacts
102-
uses: actions/upload-artifact@v4
103-
with:
104-
name: macOS arm64 Targets
105-
path: native/target/*
106-
# name: macOS arm64 Natives
107-
# path: native/build/libs/UnityTranslateLib-*.jar
10842
build-windows:
10943
environment: UnityTranslate Build
11044
runs-on: windows-latest

native/build.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ data class RustPlatform(
3232
}
3333

3434
val RUST_TARGETS = listOf(
35-
RustPlatform("aarch64-apple-darwin", "osx", "aarch64", listOf()), // macOS arm64
36-
RustPlatform("aarch64-unknown-linux-gnu", "linux", "aarch64", listOf("libUnityTranslateLib.so")), // Linux aarch64
35+
//RustPlatform("aarch64-apple-darwin", "osx", "aarch64", listOf()), // macOS arm64
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
3838
RustPlatform("x86_64-unknown-linux-gnu", "linux", "amd64", listOf("libUnityTranslateLib.so")), // Linux x86-64
3939
)
@@ -71,18 +71,18 @@ val ct2Files = mapOf(
7171
StringBased("ctranslate2/cudnn64_9.dll", "cudnn64_9.dll"),
7272
StringBased("ctranslate2/libiomp5md.dll", "libiomp5md.dll")
7373
),
74-
Platform("macOS", "arm64") to listOf(
74+
/*Platform("macOS", "arm64") to listOf(
7575
RegexBased(Regex("ctranslate2/\\.dylibs/libctranslate2\\.\\d\\.\\d\\.\\d\\.dylib"), "libctranslate2.dylib")
76-
),
76+
),*/
7777
Platform("Linux", "auto64") to listOf(
7878
RegexBased(Regex("ctranslate2\\.libs/libctranslate2-\\w+\\.so\\.\\d\\.\\d\\.\\d"), "libctranslate2.so"),
7979
RegexBased(Regex("ctranslate2\\.libs/libcudnn-\\w+\\.so\\.\\d\\.\\d\\.\\d"), "libcudnn.so"),
8080
RegexBased(Regex("ctranslate2\\.libs/libgomp-\\w+\\.so\\.\\d\\.\\d\\.\\d"), "libgomp.so"),
8181
),
82-
Platform("Linux", "aarch64") to listOf(
82+
/*Platform("Linux", "aarch64") to listOf(
8383
RegexBased(Regex("ctranslate2\\.libs/libctranslate2-\\w+\\.so\\.\\d\\.\\d\\.\\d"), "libctranslate2.so"),
8484
RegexBased(Regex("ctranslate2\\.libs/libgomp-\\w+\\.so\\.\\d\\.\\d\\.\\d"), "libgomp.so"),
85-
)
85+
)*/
8686
)
8787

8888
tasks {

0 commit comments

Comments
 (0)