Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,10 @@ jobs:
rust_target: x86_64-unknown-linux-gnu
rid: linux-x64
lib: libchat_xdk_dotnet.so
- runs_on: ubuntu-24.04-arm
rust_target: aarch64-unknown-linux-gnu
rid: linux-arm64
lib: libchat_xdk_dotnet.so
- runs_on: windows-latest
rust_target: x86_64-pc-windows-msvc
rid: win-x64
Expand Down Expand Up @@ -489,7 +493,7 @@ jobs:
run: |
set -euo pipefail
base=crates/dotnet/dotnet/ChatXdk/runtimes
for rid in osx-arm64 osx-x64 linux-x64 win-x64; do
for rid in osx-arm64 osx-x64 linux-x64 linux-arm64 win-x64; do
mkdir -p "$base/$rid/native"
cp artifacts/dotnet-native-$rid/* "$base/$rid/native/"
done
Expand Down Expand Up @@ -542,7 +546,7 @@ jobs:
run: |
set -euo pipefail
base=crates/jvm/java/chatxdk/src/main/resources/native
for rid in osx-arm64 osx-x64 linux-x64 win-x64; do
for rid in osx-arm64 osx-x64 linux-x64 linux-arm64 win-x64; do
mkdir -p "$base/$rid"
cp artifacts/dotnet-native-"$rid"/* "$base/$rid/"
done
Expand All @@ -560,6 +564,7 @@ jobs:
native/osx-arm64/libchat_xdk_dotnet.dylib \
native/osx-x64/libchat_xdk_dotnet.dylib \
native/linux-x64/libchat_xdk_dotnet.so \
native/linux-arm64/libchat_xdk_dotnet.so \
native/win-x64/chat_xdk_dotnet.dll \
META-INF/LICENSE \
META-INF/THIRD_PARTY_NOTICES.md; do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static Path extractBundledLibrary() throws IOException {
return out;
}

/** RID labels aligned with the .NET / CI matrix: osx-arm64, osx-x64, linux-x64, win-x64. */
/** RID labels aligned with the .NET / CI matrix: osx-arm64, osx-x64, linux-x64, linux-arm64, win-x64. */
static String detectRid() {
String os = System.getProperty("os.name", "").toLowerCase(Locale.ROOT);
String arch = System.getProperty("os.arch", "").toLowerCase(Locale.ROOT);
Expand All @@ -76,6 +76,9 @@ static String detectRid() {
return "osx-x64";
}
} else if (os.contains("linux")) {
if (arm) {
return "linux-arm64";
}
if (x64) {
return "linux-x64";
}
Expand Down
Loading