mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
.NET: add ios/tvos/catalyst
This commit is contained in:
parent
18091f3258
commit
7d2eec3603
66
.github/workflows/dotnet-core.yml
vendored
66
.github/workflows/dotnet-core.yml
vendored
@ -111,45 +111,36 @@ jobs:
|
|||||||
name: build-linux-musl-arm64
|
name: build-linux-musl-arm64
|
||||||
path: zig-out/lib/libsodium.a
|
path: zig-out/lib/libsodium.a
|
||||||
|
|
||||||
build-macos-x64:
|
build-apple:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: configure
|
- name: configure
|
||||||
run: env CFLAGS="-Ofast -arch x86_64 -mmacosx-version-min=10.15" LDFLAGS="-arch x86_64 -mmacosx-version-min=10.15" ./configure --host=arm-apple-darwin20 --prefix=$PWD/.libsodium-build
|
run: ./configure
|
||||||
- name: make
|
- name: build-xcframework
|
||||||
run: make
|
run: env LIBSODIUM_FULL_BUILD=1 LIBSODIUM_SKIP_SIMULATORS=1 dist-build/apple-xcframework.sh
|
||||||
- name: make check
|
|
||||||
run: make check
|
|
||||||
- name: make install
|
|
||||||
run: make install
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: build-osx-x64
|
name: build-macos
|
||||||
path: .libsodium-build/lib/libsodium.dylib
|
path: libsodium-apple/macos/lib/libsodium.dylib
|
||||||
|
|
||||||
build-macos-arm64:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: configure
|
|
||||||
run: env CFLAGS="-Ofast -arch arm64 -mmacosx-version-min=10.15" LDFLAGS="-arch arm64 -mmacosx-version-min=10.15" ./configure --host=arm-apple-darwin20 --prefix=$PWD/.libsodium-build
|
|
||||||
- name: make
|
|
||||||
run: make
|
|
||||||
- name: make install
|
|
||||||
run: make install
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: build-osx-arm64
|
name: build-ios
|
||||||
path: .libsodium-build/lib/libsodium.dylib
|
path: libsodium-apple/ios/lib/libsodium.a
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build-tvos
|
||||||
|
path: libsodium-apple/tvos/lib/libsodium.a
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build-maccatalyst
|
||||||
|
path: libsodium-apple/catalyst/lib/libsodium.a
|
||||||
pack:
|
pack:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build-windows-msvc
|
- build-windows-msvc
|
||||||
|
- build-apple
|
||||||
- build-others
|
- build-others
|
||||||
- build-macos-x64
|
|
||||||
- build-macos-arm64
|
|
||||||
container:
|
container:
|
||||||
image: mcr.microsoft.com/dotnet/sdk:6.0
|
image: mcr.microsoft.com/dotnet/sdk:6.0
|
||||||
env:
|
env:
|
||||||
@ -170,6 +161,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: build-win-arm64
|
name: build-win-arm64
|
||||||
path: .libsodium-pack/runtimes/win-arm64/native/
|
path: .libsodium-pack/runtimes/win-arm64/native/
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: build-linux-x64
|
name: build-linux-x64
|
||||||
@ -194,14 +186,32 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: build-linux-musl-arm64
|
name: build-linux-musl-arm64
|
||||||
path: .libsodium-pack/runtimes/linux-musl-arm64/native/
|
path: .libsodium-pack/runtimes/linux-musl-arm64/native/
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: build-osx-x64
|
name: build-macos
|
||||||
path: .libsodium-pack/runtimes/osx-x64/native/
|
path: .libsodium-pack/runtimes/osx-x64/native/
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: build-osx-arm64
|
name: build-macos
|
||||||
path: .libsodium-pack/runtimes/osx-arm64/native/
|
path: .libsodium-pack/runtimes/osx-arm64/native/
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build-ios
|
||||||
|
path: .libsodium-pack/runtimes/ios-arm64/native/
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build-tvos
|
||||||
|
path: .libsodium-pack/runtimes/tvos-arm64/native/
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build-maccatalyst
|
||||||
|
path: .libsodium-pack/runtimes/maccatalyst-x64/native/
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build-maccatalyst
|
||||||
|
path: .libsodium-pack/runtimes/maccatalyst-arm64/native/
|
||||||
|
|
||||||
- name: Copy files
|
- name: Copy files
|
||||||
run: cp AUTHORS ChangeLog LICENSE packaging/dotnet-core/libsodium.pkgproj .libsodium-pack/
|
run: cp AUTHORS ChangeLog LICENSE packaging/dotnet-core/libsodium.pkgproj .libsodium-pack/
|
||||||
- name: Create NuGet package
|
- name: Create NuGet package
|
||||||
|
@ -35,7 +35,11 @@
|
|||||||
<Content Include="runtimes/linux-musl-arm/native/libsodium.a" PackagePath="runtimes/linux-musl-arm/native/" />
|
<Content Include="runtimes/linux-musl-arm/native/libsodium.a" PackagePath="runtimes/linux-musl-arm/native/" />
|
||||||
<Content Include="runtimes/linux-musl-arm64/native/libsodium.a" PackagePath="runtimes/linux-musl-arm64/native/" />
|
<Content Include="runtimes/linux-musl-arm64/native/libsodium.a" PackagePath="runtimes/linux-musl-arm64/native/" />
|
||||||
<Content Include="runtimes/osx-x64/native/libsodium.dylib" PackagePath="runtimes/osx-x64/native/" />
|
<Content Include="runtimes/osx-x64/native/libsodium.dylib" PackagePath="runtimes/osx-x64/native/" />
|
||||||
<Content Include="runtimes/osx-arm64/native/libsodium.dylib" PackagePath="runtimes/osx-arm64/native/" />
|
<Content Include="runtimes/osx-arm64/native/libsodium.dylib" PackagePath="runtimes/osx-arm64/native/" />
|
||||||
|
<Content Include="runtimes/ios-arm64/native/libsodium.a" PackagePath="runtimes/ios-arm64/native/" />
|
||||||
|
<Content Include="runtimes/tvos-arm64/native/libsodium.a" PackagePath="runtimes/tvos-arm64/native/" />
|
||||||
|
<Content Include="runtimes/maccatalyst-x64/native/libsodium.a" PackagePath="runtimes/maccatalyst-x64/native/" />
|
||||||
|
<Content Include="runtimes/maccatalyst-arm64/native/libsodium.a" PackagePath="runtimes/maccatalyst-arm64/native/" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user