ci: libsodium 1.0.20 does not build with zig master
Some checks failed
CI / build (-Denable-libsodium=false, true, ubuntu-latest, master) (push) Has been cancelled
CI / build (macos-latest, 0.13.0) (push) Has been cancelled
CI / build (ubuntu-latest, 0.12.1) (push) Has been cancelled
CI / build (ubuntu-latest, 0.13.0) (push) Has been cancelled
CI / build (windows-latest, 0.13.0) (push) Has been cancelled

This is due to the arch enum losing the `aarch64_32` member. This is
fixed in libsodium upstream, but is not yet in a release version.
This commit is contained in:
torque 2024-09-15 20:31:17 -07:00
parent b898e4ec8b
commit 06523bf0ed
Signed by: torque
SSH Key Fingerprint: SHA256:nCrXefBNo6EbjNSQhv0nXmEg/VuNq3sMF5b8zETw3Tk
2 changed files with 7 additions and 5 deletions

View File

@ -21,6 +21,7 @@ jobs:
os: ubuntu-latest
- zig-version: "master"
check-format: true
build-options: "-Denable-libsodium=false"
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
@ -31,10 +32,11 @@ jobs:
uses: mlugg/setup-zig@v1
with:
version: ${{ matrix.zig-version }}
use-cache: false
- if: ${{ matrix.check-format }}
name: Check Formatting
run: zig fmt --ast-check --check .
- name: Build
run: zig build --summary all
run: zig build ${{ matrix.build-options }} --summary all

View File

@ -41,9 +41,9 @@ your_exe.linkLibrary(nats_c_dep.artifact("nats_c"));
The NATS.c library has optional dependencies:
- [`libressl`][libressl] when building with `enable-tls`
- [`protobuf-c`][protobuf-c] when building with `enable-streaming`
- [`libsodium`][libsodium] when building with `enable-libsodium`
- [`libressl 3.9.2`][libressl] when building with `enable-tls`
- [`protobuf-c 1.5.0`][protobuf-c] when building with `enable-streaming`
- [`libsodium 1.0.20`][libsodium] when building with `enable-libsodium`
These dependencies are currently automatically retrieved and compiled as static libraries by the Zig build system.
@ -51,7 +51,7 @@ These dependencies are currently automatically retrieved and compiled as static
| Refname | NATS.c Version | Zig `0.12.x` | Zig `0.13.x` | Zig `0.14.0-dev` |
|----------|----------------|--------------|--------------|------------------|
| `3.8.2` | `3.8.2` | ✅ | ✅ | |
| `3.8.2` | `3.8.2` | ✅ | ✅ | with `-Denable-libsodium=false` |
[nats.c]: https://github.com/nats-io/nats.c
[libressl]: https://github.com/allyourcodebase/libressl