File tree 5 files changed +13
-3
lines changed
5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 35
35
name : linux-arm
36
36
- os : macos-10.15
37
37
name : osx-x64
38
+ - os : macos-11
39
+ name : osx-arm64
38
40
fail-fast : false
39
41
steps :
40
42
- name : Checkout
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ This package contains the compiled versions of the libgit2 native library for
10
10
the following platforms:
11
11
12
12
- Windows (x86, x64, arm64)
13
- - macOS (x64)
13
+ - macOS (x64, arm64 )
14
14
- Linux (arm, arm64, x64)
15
15
16
16
[ lg2s-nb ] : https://www.nuget.org/packages/LibGit2Sharp.NativeBinaries
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ Push-Location $libgit2Directory
124
124
<dllmap os="linux" cpu="arm" wordsize="32" dll="$binaryFilename " target="lib/linux-arm/lib$binaryFilename .so" />
125
125
<dllmap os="linux" cpu="armv8" wordsize="64" dll="$binaryFilename " target="lib/linux-arm64/lib$binaryFilename .so" />
126
126
<dllmap os="osx" cpu="x86-64" wordsize="64" dll="$binaryFilename " target="lib/osx-x64/lib$binaryFilename .dylib" />
127
+ <dllmap os="osx" cpu="armv8" wordsize="64" dll="$binaryFilename " target="lib/osx-arm64/lib$binaryFilename .dylib" />
127
128
</configuration>
128
129
"@
129
130
Original file line number Diff line number Diff line change @@ -7,9 +7,13 @@ SHORTSHA=${LIBGIT2SHA:0:7}
7
7
OS=` uname`
8
8
ARCH=` uname -m`
9
9
PACKAGEPATH=" nuget.package/runtimes"
10
+ OSXARCHITECTURE=" x86_64"
10
11
11
12
if [[ $OS == " Darwin" ]]; then
12
13
USEHTTPS=" ON"
14
+ if [[ $ARCH == " arm64" ]]; then
15
+ OSXARCHITECTURE=" arm64"
16
+ fi
13
17
else
14
18
USEHTTPS=" OpenSSL-Dynamic"
15
19
fi
@@ -25,15 +29,17 @@ if [[ $RID == *arm ]]; then
25
29
fi
26
30
27
31
if [[ $RID == * arm64 ]]; then
28
- export TOOLCHAIN_FILE=/nativebinaries/CMakeLists.arm64.txt
32
+ if [[ $OS != " Darwin" ]]; then
33
+ export TOOLCHAIN_FILE=/nativebinaries/CMakeLists.arm64.txt
34
+ fi
29
35
fi
30
36
31
37
cmake -DCMAKE_BUILD_TYPE:STRING=Release \
32
38
-DBUILD_CLAR:BOOL=OFF \
33
39
-DUSE_SSH=OFF \
34
40
-DENABLE_TRACE=ON \
35
41
-DLIBGIT2_FILENAME=git2-$SHORTSHA \
36
- -DCMAKE_OSX_ARCHITECTURES=" x86_64 " \
42
+ -DCMAKE_OSX_ARCHITECTURES=$OSXARCHITECTURE \
37
43
-DUSE_HTTPS=$USEHTTPS \
38
44
-DUSE_BUNDLED_ZLIB=ON \
39
45
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
Original file line number Diff line number Diff line change 3
3
<dllmap os =" linux" cpu =" arm" wordsize =" 32" dll =" git2-b7bad55" target =" lib/linux-arm/libgit2-b7bad55.so" />
4
4
<dllmap os =" linux" cpu =" armv8" wordsize =" 64" dll =" git2-b7bad55" target =" lib/linux-arm64/libgit2-b7bad55.so" />
5
5
<dllmap os =" osx" cpu =" x86-64" wordsize =" 64" dll =" git2-b7bad55" target =" lib/osx-x64/libgit2-b7bad55.dylib" />
6
+ <dllmap os =" osx" cpu =" armv8" wordsize =" 64" dll =" git2-b7bad55" target =" lib/osx-arm64/libgit2-b7bad55.dylib" />
6
7
</configuration >
You can’t perform that action at this time.
0 commit comments