From 916de4fef4c4f9ab08027287487383abf7c6a87a Mon Sep 17 00:00:00 2001 From: Brandon Ording Date: Sat, 23 Nov 2024 15:32:37 -0500 Subject: [PATCH] Add ppc64le support (#161) * Add ppc64le support Signed-off-by: David Christensen * Tweaks --------- Signed-off-by: David Christensen Co-authored-by: David Christensen --- .github/workflows/ci.yml | 2 ++ README.md | 4 +++- UpdateLibgit2ToSha.ps1 | 1 + dockerbuild.sh | 2 ++ nuget.package/libgit2/LibGit2Sharp.dll.config | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc6de30a..48ee9ae8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,8 @@ jobs: name: linux-musl-arm64 - os: ubuntu-24.04 name: linux-arm + - os: ubuntu-24.04 + name: linux-ppc64le - os: macos-13 name: osx-x64 - os: macos-13 diff --git a/README.md b/README.md index 053524de..a6f68879 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,9 @@ the following platforms: - Windows (x86, x64, arm64) - macOS (x64, arm64) - - Linux (x64, arm, arm64) for both musl and glibc + - Linux + - glibc: (x64, arm, arm64, ppc64le) + - musl: (x64, arm, arm64) [lg2s-nb]: https://www.nuget.org/packages/LibGit2Sharp.NativeBinaries [lg2]: https://libgit2.github.com/ diff --git a/UpdateLibgit2ToSha.ps1 b/UpdateLibgit2ToSha.ps1 index 3f37e9fd..a3111d3d 100644 --- a/UpdateLibgit2ToSha.ps1 +++ b/UpdateLibgit2ToSha.ps1 @@ -123,6 +123,7 @@ Push-Location $libgit2Directory + diff --git a/dockerbuild.sh b/dockerbuild.sh index 489ba499..4ee5a0a2 100755 --- a/dockerbuild.sh +++ b/dockerbuild.sh @@ -7,6 +7,8 @@ if [[ $RID =~ arm64 ]]; then arch="arm64" elif [[ $RID =~ arm ]]; then arch="armhf" +elif [[ $RID =~ ppc64le ]]; then + arch="powerpc64le" else arch="amd64" fi diff --git a/nuget.package/libgit2/LibGit2Sharp.dll.config b/nuget.package/libgit2/LibGit2Sharp.dll.config index 81ed6243..31c8e42b 100644 --- a/nuget.package/libgit2/LibGit2Sharp.dll.config +++ b/nuget.package/libgit2/LibGit2Sharp.dll.config @@ -2,6 +2,7 @@ +