File tree Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 3535 name : linux-arm
3636 - os : macos-10.15
3737 name : osx-x64
38+ - os : macos-11
39+ name : osx-arm64
3840 fail-fast : false
3941 steps :
4042 - 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
1010the following platforms:
1111
1212 - Windows (x86, x64, arm64)
13- - macOS (x64)
13+ - macOS (x64, arm64 )
1414 - Linux (arm, arm64, x64)
1515
1616 [ 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
124124 <dllmap os="linux" cpu="arm" wordsize="32" dll="$binaryFilename " target="lib/linux-arm/lib$binaryFilename .so" />
125125 <dllmap os="linux" cpu="armv8" wordsize="64" dll="$binaryFilename " target="lib/linux-arm64/lib$binaryFilename .so" />
126126 <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" />
127128</configuration>
128129"@
129130
Original file line number Diff line number Diff line change @@ -7,9 +7,13 @@ SHORTSHA=${LIBGIT2SHA:0:7}
77OS=` uname`
88ARCH=` uname -m`
99PACKAGEPATH=" nuget.package/runtimes"
10+ OSXARCHITECTURE=" x86_64"
1011
1112if [[ $OS == " Darwin" ]]; then
1213 USEHTTPS=" ON"
14+ if [[ $ARCH == " arm64" ]]; then
15+ OSXARCHITECTURE=" arm64"
16+ fi
1317else
1418 USEHTTPS=" OpenSSL-Dynamic"
1519fi
@@ -25,15 +29,17 @@ if [[ $RID == *arm ]]; then
2529fi
2630
2731if [[ $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
2935fi
3036
3137cmake -DCMAKE_BUILD_TYPE:STRING=Release \
3238 -DBUILD_CLAR:BOOL=OFF \
3339 -DUSE_SSH=OFF \
3440 -DENABLE_TRACE=ON \
3541 -DLIBGIT2_FILENAME=git2-$SHORTSHA \
36- -DCMAKE_OSX_ARCHITECTURES=" x86_64 " \
42+ -DCMAKE_OSX_ARCHITECTURES=$OSXARCHITECTURE \
3743 -DUSE_HTTPS=$USEHTTPS \
3844 -DUSE_BUNDLED_ZLIB=ON \
3945 -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
Original file line number Diff line number Diff line change 33 <dllmap os =" linux" cpu =" arm" wordsize =" 32" dll =" git2-b7bad55" target =" lib/linux-arm/libgit2-b7bad55.so" />
44 <dllmap os =" linux" cpu =" armv8" wordsize =" 64" dll =" git2-b7bad55" target =" lib/linux-arm64/libgit2-b7bad55.so" />
55 <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" />
67</configuration >
You can’t perform that action at this time.
0 commit comments