Skip to content

Commit f5836b9

Browse files
committed
Tweaks
1 parent d5926f0 commit f5836b9

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

.github/workflows/ci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ jobs:
3939
name: linux-arm
4040
- os: ubuntu-24.04
4141
name: linux-ppc64le
42-
- os: ubuntu-24.04
43-
name: linux-musl-ppc64le
4442
- os: macos-13
4543
name: osx-x64
4644
- os: macos-13

Dockerfile.linux

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
FROM bording/crossbuild
22
ARG ARCH='amd64'
3-
ARG CC_ARCH='amd64'
4-
ENV CROSS_TRIPLE=${CC_ARCH}
3+
ENV CROSS_TRIPLE=${ARCH}
54
RUN apt update && apt -y install pkg-config
65

76
WORKDIR /nativebinaries
87
COPY . /nativebinaries/
98

10-
CMD ["/bin/bash", "-c", "./build.libgit2.sh"]
9+
CMD ["/bin/bash", "-c", "./build.libgit2.sh"]

Dockerfile.linux-musl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ RUN apk add --no-cache bash build-base cmake
55
WORKDIR /nativebinaries
66
COPY . /nativebinaries/
77

8-
CMD ["/bin/bash", "-c", "./build.libgit2.sh"]
8+
CMD ["/bin/bash", "-c", "./build.libgit2.sh"]

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ the following platforms:
1111

1212
- Windows (x86, x64, arm64)
1313
- macOS (x64, arm64)
14-
- Linux (x64, arm, arm64, ppc64le) for both musl and glibc
14+
- Linux
15+
- glibc: (x64, arm, arm64, ppc64le)
16+
- musl: (x64, arm, arm64)
1517

1618
[lg2s-nb]: https://www.nuget.org/packages/LibGit2Sharp.NativeBinaries
1719
[lg2]: https://libgit2.github.com/

dockerbuild.sh

+3-10
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,12 @@ echo "building for $RID"
55

66
if [[ $RID =~ arm64 ]]; then
77
arch="arm64"
8-
cc_arch="arm64"
98
elif [[ $RID =~ arm ]]; then
109
arch="armhf"
11-
cc_arch="armhf"
12-
elif [[ $RID == linux-ppc64le ]]; then
13-
arch="ppc64le"
14-
cc_arch="powerpc64le"
15-
elif [[ $RID == linux-musl-ppc64le ]]; then
16-
arch="ppc64le"
17-
cc_arch="ppc64le"
10+
elif [[ $RID =~ ppc64le ]]; then
11+
arch="powerpc64le"
1812
else
1913
arch="amd64"
20-
cc_arch="amd64"
2114
fi
2215

2316
if [[ $RID == linux-musl* ]]; then
@@ -26,7 +19,7 @@ else
2619
dockerfile="Dockerfile.linux"
2720
fi
2821

29-
docker buildx build -t $RID -f $dockerfile --build-arg ARCH=$arch --build-arg CC_ARCH=$cc_arch .
22+
docker buildx build -t $RID -f $dockerfile --build-arg ARCH=$arch
3023

3124
docker run -t -e RID=$RID --name=$RID $RID
3225

0 commit comments

Comments
 (0)