1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

CI: use zig-master

This commit is contained in:
Frank Denis 2023-02-16 22:07:17 +01:00
parent bb2ee2359f
commit 50f7b2882f
2 changed files with 10 additions and 12 deletions

View File

@ -40,17 +40,16 @@ jobs:
- name: Update packages list
run: sudo apt-get update
- name: Install dependencies
run: |
curl -sL -o - https://ziglang.org/download/0.10.1/zig-linux-x86_64-0.10.1.tar.xz | tar xJ -f - -C /opt/
sudo mv /opt/zig-* /opt/zig
- name: Install Zig
uses: goto-bus-stop/setup-zig@869a4299cf8ac7db4ebffaec36ad82a682f88acb
with:
version: master
- name: Autogen
run: ./autogen.sh -s
- name: Compilation with zig
run: |
export PATH=/opt/zig:$PATH
zig build
zig build -Dtarget=x86_64-linux
zig build -Dtarget=aarch64-linux
@ -178,4 +177,3 @@ jobs:
- name: Android compilation
run: |
env ANDROID_NDK_HOME=/tmp/android/ndk ./dist-build/android-aar.sh

View File

@ -30,7 +30,7 @@ jobs:
- name: Install Zig
uses: goto-bus-stop/setup-zig@869a4299cf8ac7db4ebffaec36ad82a682f88acb
with:
version: 0.10.1
version: master
- uses: actions/checkout@v3
- name: build
run: |
@ -48,7 +48,7 @@ jobs:
- name: Install Zig
uses: goto-bus-stop/setup-zig@869a4299cf8ac7db4ebffaec36ad82a682f88acb
with:
version: 0.10.1
version: master
- name: Fix ARM support
run: |
curl -L https://raw.githubusercontent.com/ziglang/zig/master/lib/libc/glibc/sysdeps/arm/arm-features.h | sudo tee /opt/hostedtoolcache/zig/zig-linux-x86_64-*/x64/lib/libc/glibc/sysdeps/arm/sysdep.h >/dev/null
@ -79,7 +79,7 @@ jobs:
- name: Install Zig
uses: goto-bus-stop/setup-zig@869a4299cf8ac7db4ebffaec36ad82a682f88acb
with:
version: 0.10.1
version: master
- name: Set up emulation environment
run: |
export DEBIAN_FRONTEND=noninteractive
@ -113,7 +113,7 @@ jobs:
- name: Install Zig
uses: goto-bus-stop/setup-zig@869a4299cf8ac7db4ebffaec36ad82a682f88acb
with:
version: 0.10.1
version: master
- uses: actions/checkout@v3
- name: build
run: |
@ -132,7 +132,7 @@ jobs:
- name: Install Zig
uses: goto-bus-stop/setup-zig@869a4299cf8ac7db4ebffaec36ad82a682f88acb
with:
version: 0.10.1
version: master
- uses: actions/checkout@v3
- name: build
run: |
@ -148,7 +148,7 @@ jobs:
- name: Install Zig
uses: goto-bus-stop/setup-zig@869a4299cf8ac7db4ebffaec36ad82a682f88acb
with:
version: 0.10.1
version: master
- uses: actions/checkout@v3
- name: build
run: |