1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-27 22:11:10 -07:00

dotnet-core CI: update Zig to version nightly 0.14.x

This fixes the compatibility issues with DLLs for Windows ARM64
This commit is contained in:
Frank Denis 2024-12-10 19:46:16 +01:00
parent 7dea8e7356
commit eba3a42372

View File

@ -40,15 +40,15 @@ jobs:
- name: build-win-arm64 - name: build-win-arm64
run: | run: |
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-windows rm -fr zig-out .zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-windows
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: build-win-arm64 name: build-win-arm64
path: zig-out/lib/libsodium.dll path: zig-out/bin/libsodium.dll
- name: build-linux-x64 - name: build-linux-x64
run: | run: |
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-gnu.2.17 rm -fr zig-out .zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-gnu.2.17
- name: tests - name: tests
run: cd zig-out/bin && ./run.sh run: cd zig-out/bin && ./run.sh
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
@ -72,7 +72,7 @@ jobs:
- name: build-linux-arm - name: build-linux-arm
run: | run: |
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-gnueabihf.2.23 rm -fr zig-out .zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-gnueabihf.2.23
- name: tests - name: tests
run: | run: |
cd zig-out/bin && env LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib ./run.sh cd zig-out/bin && env LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib ./run.sh
@ -83,7 +83,7 @@ jobs:
- name: build-linux-arm64 - name: build-linux-arm64
run: | run: |
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu.2.23 rm -fr zig-out .zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu.2.23
- name: tests - name: tests
run: | run: |
cd zig-out/bin && env LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib ./run.sh cd zig-out/bin && env LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib ./run.sh
@ -94,7 +94,7 @@ jobs:
- name: build-linux-musl-x64 - name: build-linux-musl-x64
run: | run: |
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-musl rm -fr zig-out .zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-musl
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: build-linux-musl-x64 name: build-linux-musl-x64
@ -102,7 +102,7 @@ jobs:
- name: build-linux-musl-arm - name: build-linux-musl-arm
run: | run: |
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-musleabihf rm -fr zig-out .zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-musleabihf
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: build-linux-musl-arm name: build-linux-musl-arm
@ -110,7 +110,7 @@ jobs:
- name: build-linux-musl-arm64 - name: build-linux-musl-arm64
run: | run: |
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-musl rm -fr zig-out .zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-musl
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: build-linux-musl-arm64 name: build-linux-musl-arm64