2020-11-04 09:03:28 -07:00
|
|
|
name: .NET Package
|
2019-12-29 12:38:01 -07:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2019-12-30 06:53:04 -07:00
|
|
|
branches:
|
2021-11-10 07:56:51 -07:00
|
|
|
- stable
|
|
|
|
- next
|
2019-12-29 12:38:01 -07:00
|
|
|
|
|
|
|
jobs:
|
2024-04-27 14:13:39 -07:00
|
|
|
build-windows-msvc:
|
2019-12-29 12:38:01 -07:00
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
2024-03-03 15:19:34 -07:00
|
|
|
- uses: actions/checkout@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
- name: buildbase.bat
|
2022-02-27 03:39:46 -07:00
|
|
|
run: buildbase.bat ..\vs2022\libsodium.sln 17
|
2021-11-10 07:56:51 -07:00
|
|
|
working-directory: builds/msvc/build/
|
|
|
|
shell: cmd
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
|
|
|
name: build-win-x64
|
2022-02-27 03:39:46 -07:00
|
|
|
path: bin/x64/Release/v143/dynamic/libsodium.dll
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
|
|
|
name: build-win-x86
|
2022-02-27 03:39:46 -07:00
|
|
|
path: bin/Win32/Release/v143/dynamic/libsodium.dll
|
2021-05-26 07:11:25 -07:00
|
|
|
|
2024-04-27 14:13:39 -07:00
|
|
|
build-others:
|
2019-12-29 12:38:01 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-11-27 16:08:25 -07:00
|
|
|
- name: Install Zig
|
2024-04-26 15:10:18 -07:00
|
|
|
uses: goto-bus-stop/setup-zig@2a9625d550eefc3a9b1a43d342ad655f563f8241
|
2022-11-27 16:08:25 -07:00
|
|
|
with:
|
2023-02-16 14:07:17 -07:00
|
|
|
version: master
|
2024-03-03 15:19:34 -07:00
|
|
|
- uses: actions/checkout@v4
|
2024-04-27 14:13:39 -07:00
|
|
|
|
|
|
|
- name: build-win-arm64
|
|
|
|
run: |
|
|
|
|
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-windows
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2024-04-27 14:13:39 -07:00
|
|
|
with:
|
|
|
|
name: build-win-arm64
|
|
|
|
path: zig-out/lib/libsodium.dll
|
|
|
|
|
|
|
|
- name: build-linux-x64
|
2022-11-27 16:08:25 -07:00
|
|
|
run: |
|
2024-04-27 14:13:39 -07:00
|
|
|
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-gnu.2.17
|
2022-11-27 16:08:25 -07:00
|
|
|
- name: tests
|
|
|
|
run: cd zig-out/bin && ./run.sh
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
|
|
|
name: build-linux-x64
|
2022-11-27 16:08:25 -07:00
|
|
|
path: zig-out/lib/libsodium.so
|
2021-05-25 10:25:23 -07:00
|
|
|
|
2024-04-27 14:13:39 -07:00
|
|
|
- name: Set up arm and aarch64 emulation environment
|
2021-11-10 07:56:51 -07:00
|
|
|
run: |
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
2022-11-27 16:08:25 -07:00
|
|
|
sudo apt-get update
|
2024-04-27 14:13:39 -07:00
|
|
|
sudo apt-get install -y build-essential qemu binfmt-support qemu-user-static qemu-system-arm gcc-arm-linux-gnueabihf libc6-armhf-cross gcc-aarch64-linux-gnu libc6-arm64-cross
|
2022-11-27 16:08:25 -07:00
|
|
|
sudo dpkg --add-architecture armhf
|
|
|
|
sudo update-binfmts --enable qemu-arm
|
|
|
|
sudo update-binfmts --display
|
|
|
|
sudo ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.* /lib
|
2024-04-27 14:13:39 -07:00
|
|
|
sudo dpkg --add-architecture arm64
|
|
|
|
sudo update-binfmts --enable qemu-aarch64
|
|
|
|
sudo update-binfmts --display
|
|
|
|
sudo ln -s /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.* /lib
|
|
|
|
|
|
|
|
- name: build-linux-arm
|
2021-11-10 07:56:51 -07:00
|
|
|
run: |
|
2024-04-27 14:13:39 -07:00
|
|
|
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-gnueabihf.2.23
|
2022-11-27 16:08:25 -07:00
|
|
|
- name: tests
|
|
|
|
run: |
|
|
|
|
cd zig-out/bin && env LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib ./run.sh
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
2022-11-27 16:08:25 -07:00
|
|
|
name: build-linux-arm
|
|
|
|
path: zig-out/lib/libsodium.so
|
2021-05-26 07:11:25 -07:00
|
|
|
|
2024-04-27 14:13:39 -07:00
|
|
|
- name: build-linux-arm64
|
2021-11-10 07:56:51 -07:00
|
|
|
run: |
|
2024-04-27 14:13:39 -07:00
|
|
|
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu.2.23
|
2022-11-27 16:08:25 -07:00
|
|
|
- name: tests
|
|
|
|
run: |
|
|
|
|
cd zig-out/bin && env LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib ./run.sh
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
2022-11-27 16:08:25 -07:00
|
|
|
name: build-linux-arm64
|
|
|
|
path: zig-out/lib/libsodium.so
|
2021-05-26 10:59:11 -07:00
|
|
|
|
2024-04-27 14:13:39 -07:00
|
|
|
- name: build-linux-musl-x64
|
2022-11-27 16:08:25 -07:00
|
|
|
run: |
|
2024-04-27 14:13:39 -07:00
|
|
|
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-musl
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
|
|
|
name: build-linux-musl-x64
|
2024-04-26 15:10:18 -07:00
|
|
|
path: zig-out/lib/libsodium.a
|
2021-05-26 07:11:25 -07:00
|
|
|
|
2024-04-27 14:13:39 -07:00
|
|
|
- name: build-linux-musl-arm
|
2022-08-15 07:46:14 -07:00
|
|
|
run: |
|
2024-04-27 14:13:39 -07:00
|
|
|
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-musleabihf
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2022-11-27 16:08:25 -07:00
|
|
|
with:
|
|
|
|
name: build-linux-musl-arm
|
2024-04-26 15:10:18 -07:00
|
|
|
path: zig-out/lib/libsodium.a
|
2022-11-27 16:08:25 -07:00
|
|
|
|
2024-04-27 14:13:39 -07:00
|
|
|
- name: build-linux-musl-arm64
|
2022-11-27 16:08:25 -07:00
|
|
|
run: |
|
2024-04-27 14:13:39 -07:00
|
|
|
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-musl
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2022-08-15 07:46:14 -07:00
|
|
|
with:
|
|
|
|
name: build-linux-musl-arm64
|
2024-04-26 15:10:18 -07:00
|
|
|
path: zig-out/lib/libsodium.a
|
2022-08-15 07:46:14 -07:00
|
|
|
|
2024-04-28 04:31:04 -07:00
|
|
|
build-apple:
|
2022-11-27 16:08:25 -07:00
|
|
|
runs-on: macos-latest
|
2019-12-29 12:38:01 -07:00
|
|
|
steps:
|
2024-03-03 15:19:34 -07:00
|
|
|
- uses: actions/checkout@v4
|
2024-04-27 14:13:39 -07:00
|
|
|
- name: configure
|
2024-04-28 04:31:04 -07:00
|
|
|
run: ./configure
|
|
|
|
- name: build-xcframework
|
|
|
|
run: env LIBSODIUM_FULL_BUILD=1 LIBSODIUM_SKIP_SIMULATORS=1 dist-build/apple-xcframework.sh
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2023-01-16 05:47:57 -07:00
|
|
|
with:
|
2024-04-28 04:31:04 -07:00
|
|
|
name: build-macos
|
|
|
|
path: libsodium-apple/macos/lib/libsodium.dylib
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2021-11-11 04:30:10 -07:00
|
|
|
with:
|
2024-04-28 04:31:04 -07:00
|
|
|
name: build-ios
|
|
|
|
path: libsodium-apple/ios/lib/libsodium.a
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2024-04-28 04:31:04 -07:00
|
|
|
with:
|
|
|
|
name: build-tvos
|
|
|
|
path: libsodium-apple/tvos/lib/libsodium.a
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2024-04-28 04:31:04 -07:00
|
|
|
with:
|
|
|
|
name: build-maccatalyst
|
|
|
|
path: libsodium-apple/catalyst/lib/libsodium.a
|
2019-12-29 12:38:01 -07:00
|
|
|
pack:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs:
|
2024-04-27 14:13:39 -07:00
|
|
|
- build-windows-msvc
|
2024-04-28 04:31:04 -07:00
|
|
|
- build-apple
|
2024-04-27 14:13:39 -07:00
|
|
|
- build-others
|
2023-01-16 05:47:57 -07:00
|
|
|
container:
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:6.0
|
2020-11-04 09:03:28 -07:00
|
|
|
env:
|
|
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
|
|
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
|
2019-12-29 12:38:01 -07:00
|
|
|
steps:
|
2024-03-03 15:19:34 -07:00
|
|
|
- uses: actions/checkout@v4
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
|
|
|
name: build-win-x64
|
|
|
|
path: .libsodium-pack/runtimes/win-x64/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
|
|
|
name: build-win-x86
|
|
|
|
path: .libsodium-pack/runtimes/win-x86/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
2024-04-27 14:13:39 -07:00
|
|
|
name: build-win-arm64
|
|
|
|
path: .libsodium-pack/runtimes/win-arm64/native/
|
2024-04-28 04:31:04 -07:00
|
|
|
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
2024-04-27 14:13:39 -07:00
|
|
|
name: build-linux-x64
|
|
|
|
path: .libsodium-pack/runtimes/linux-x64/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2023-01-16 05:47:57 -07:00
|
|
|
with:
|
|
|
|
name: build-linux-arm64
|
|
|
|
path: .libsodium-pack/runtimes/linux-arm64/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2024-04-27 14:13:39 -07:00
|
|
|
with:
|
|
|
|
name: build-linux-arm
|
|
|
|
path: .libsodium-pack/runtimes/linux-arm/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
|
|
|
name: build-linux-musl-x64
|
|
|
|
path: .libsodium-pack/runtimes/linux-musl-x64/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2022-11-27 16:08:25 -07:00
|
|
|
with:
|
|
|
|
name: build-linux-musl-arm
|
|
|
|
path: .libsodium-pack/runtimes/linux-musl-arm/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2022-08-15 07:46:14 -07:00
|
|
|
with:
|
|
|
|
name: build-linux-musl-arm64
|
|
|
|
path: .libsodium-pack/runtimes/linux-musl-arm64/native/
|
2024-04-28 04:31:04 -07:00
|
|
|
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
2024-04-28 04:31:04 -07:00
|
|
|
name: build-macos
|
2021-11-10 07:56:51 -07:00
|
|
|
path: .libsodium-pack/runtimes/osx-x64/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2021-11-11 04:30:10 -07:00
|
|
|
with:
|
2024-04-28 04:31:04 -07:00
|
|
|
name: build-macos
|
2021-11-11 04:30:10 -07:00
|
|
|
path: .libsodium-pack/runtimes/osx-arm64/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2024-04-28 04:31:04 -07:00
|
|
|
with:
|
|
|
|
name: build-ios
|
|
|
|
path: .libsodium-pack/runtimes/ios-arm64/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2024-04-28 04:31:04 -07:00
|
|
|
with:
|
|
|
|
name: build-tvos
|
|
|
|
path: .libsodium-pack/runtimes/tvos-arm64/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2024-04-28 04:31:04 -07:00
|
|
|
with:
|
|
|
|
name: build-maccatalyst
|
|
|
|
path: .libsodium-pack/runtimes/maccatalyst-x64/native/
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2024-04-28 04:31:04 -07:00
|
|
|
with:
|
|
|
|
name: build-maccatalyst
|
|
|
|
path: .libsodium-pack/runtimes/maccatalyst-arm64/native/
|
|
|
|
|
2021-11-10 07:56:51 -07:00
|
|
|
- name: Copy files
|
|
|
|
run: cp AUTHORS ChangeLog LICENSE packaging/dotnet-core/libsodium.pkgproj .libsodium-pack/
|
|
|
|
- name: Create NuGet package
|
|
|
|
run: dotnet pack -c Release .libsodium-pack/libsodium.pkgproj
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
|
|
|
name: nuget-package
|
|
|
|
path: .libsodium-pack/bin/Release/*.nupkg
|
2019-12-30 05:26:57 -07:00
|
|
|
|
2021-06-01 08:58:01 -07:00
|
|
|
build-test-binaries:
|
2019-12-30 05:26:57 -07:00
|
|
|
runs-on: ubuntu-latest
|
2021-05-26 07:11:25 -07:00
|
|
|
needs:
|
2021-11-10 07:56:51 -07:00
|
|
|
- pack
|
2023-01-16 05:47:57 -07:00
|
|
|
container:
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:6.0
|
2019-12-30 05:26:57 -07:00
|
|
|
env:
|
|
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
|
|
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
|
|
|
|
steps:
|
2024-03-03 15:19:34 -07:00
|
|
|
- uses: actions/checkout@v4
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
|
|
|
name: nuget-package
|
|
|
|
path: .libsodium-pack/
|
|
|
|
- name: dotnet new
|
|
|
|
run: dotnet new console -n Tests -o .libsodium-test/
|
|
|
|
- name: dotnet add package libsodium
|
|
|
|
run: dotnet add .libsodium-test/Tests.csproj package libsodium -s $PWD/.libsodium-pack
|
|
|
|
- name: Copy files
|
|
|
|
run: cp -f packaging/dotnet-core/test.cs .libsodium-test/Program.cs
|
|
|
|
- name: dotnet publish linux-x64
|
|
|
|
run: dotnet publish -c Release -r linux-x64 --self-contained true -p:PublishTrimmed=true
|
|
|
|
working-directory: .libsodium-test/
|
|
|
|
- name: dotnet publish linux-arm
|
|
|
|
run: dotnet publish -c Release -r linux-arm --self-contained true -p:PublishTrimmed=true
|
|
|
|
working-directory: .libsodium-test/
|
|
|
|
- name: dotnet publish linux-arm64
|
|
|
|
run: dotnet publish -c Release -r linux-arm64 --self-contained true -p:PublishTrimmed=true
|
|
|
|
working-directory: .libsodium-test/
|
|
|
|
- name: Move Build Output
|
|
|
|
run: |
|
|
|
|
mkdir .libsodium-builds
|
2022-04-30 12:46:56 -07:00
|
|
|
mv .libsodium-test/bin/Release/net6.0/linux-arm/publish .libsodium-builds/linux-arm
|
|
|
|
mv .libsodium-test/bin/Release/net6.0/linux-arm64/publish .libsodium-builds/linux-arm64
|
|
|
|
mv .libsodium-test/bin/Release/net6.0/linux-x64/publish .libsodium-builds/linux-x64
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/upload-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
|
|
|
name: test-builds
|
|
|
|
path: .libsodium-builds/*
|
2021-06-01 08:58:01 -07:00
|
|
|
|
2022-02-27 03:39:46 -07:00
|
|
|
run-test-binaries-os-versions:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs:
|
|
|
|
- build-test-binaries
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-11-23 12:13:26 -07:00
|
|
|
# CentOS 7 and Debian 10 use an older GCC version; make sure we can run on those platforms.
|
|
|
|
arch: [ 'centos:7', 'debian:10' ]
|
2022-02-27 03:39:46 -07:00
|
|
|
container:
|
|
|
|
image: ${{ matrix.arch }}
|
|
|
|
env:
|
|
|
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
|
|
|
|
steps:
|
2022-11-23 11:42:39 -07:00
|
|
|
- uses: actions/download-artifact@v3
|
2022-02-27 03:39:46 -07:00
|
|
|
with:
|
|
|
|
name: test-builds
|
|
|
|
path: .libsodium-builds/
|
|
|
|
- name: Run x64 tests
|
|
|
|
run: |
|
|
|
|
chmod +x .libsodium-builds/linux-x64/Tests
|
|
|
|
.libsodium-builds/linux-x64/Tests
|
|
|
|
|
|
|
|
run-test-binaries-cross-plat:
|
2022-11-23 12:05:50 -07:00
|
|
|
runs-on: ubuntu-22.04
|
2021-06-01 08:58:01 -07:00
|
|
|
needs:
|
2021-11-10 07:56:51 -07:00
|
|
|
- build-test-binaries
|
2021-06-01 08:58:01 -07:00
|
|
|
env:
|
|
|
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-11-24 15:16:50 -07:00
|
|
|
include:
|
|
|
|
- arch: x64
|
|
|
|
libs: /usr/lib
|
|
|
|
- arch: arm
|
|
|
|
libs: /usr/arm-linux-gnueabihf/lib
|
|
|
|
- arch: arm64
|
|
|
|
libs: /usr/aarch64-linux-gnu/lib
|
2021-06-01 08:58:01 -07:00
|
|
|
arch: [x64, arm, arm64]
|
|
|
|
steps:
|
2021-11-10 07:56:51 -07:00
|
|
|
- name: Set up build environment
|
|
|
|
run: |
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2022-08-15 07:46:14 -07:00
|
|
|
# On virtualization systems such as the one used by WSL2, the ARM crypto extensions
|
2022-11-23 12:05:50 -07:00
|
|
|
# don't work as expected. As a result, installing on Ubuntu fails during integrity
|
2022-08-15 07:46:14 -07:00
|
|
|
# checks. As a workaround, the following command disables hardware acceleration for
|
|
|
|
# gcrypt, which the apt-get command relies on.
|
2022-11-24 14:45:51 -07:00
|
|
|
sudo mkdir -p /etc/gcrypt && echo all | sudo tee /etc/gcrypt/hwf.deny
|
2021-11-10 07:56:51 -07:00
|
|
|
|
2022-11-24 15:16:50 -07:00
|
|
|
sudo apt-get update && sudo apt-get install -y qemu binfmt-support qemu-user-static qemu-system-arm gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu libc6-armhf-cross libc6-arm64-cross
|
2021-11-10 07:56:51 -07:00
|
|
|
sudo dpkg --add-architecture armhf
|
|
|
|
sudo dpkg --add-architecture arm64
|
2022-11-24 14:45:51 -07:00
|
|
|
sudo update-binfmts --enable qemu-aarch64
|
|
|
|
sudo update-binfmts --enable qemu-arm
|
|
|
|
sudo update-binfmts --display
|
|
|
|
sudo ln -s /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.* /lib
|
|
|
|
sudo ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.* /lib
|
2021-11-10 07:56:51 -07:00
|
|
|
|
2024-04-28 07:06:23 -07:00
|
|
|
- uses: actions/download-artifact@v4
|
2021-11-10 07:56:51 -07:00
|
|
|
with:
|
|
|
|
name: test-builds
|
|
|
|
path: .libsodium-builds/
|
|
|
|
|
|
|
|
- name: Run ${{ matrix.arch }}
|
|
|
|
run: |
|
|
|
|
chmod +x .libsodium-builds/linux-${{ matrix.arch }}/Tests
|
2022-11-24 15:16:50 -07:00
|
|
|
env LD_LIBRARY_PATH=${{ matrix.libs }} .libsodium-builds/linux-${{ matrix.arch }}/Tests
|