Skip to content

Commit

Permalink
ci: libsodium 1.0.20 does not build with zig master
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
torque committed Sep 16, 2024
1 parent b898e4e commit 06523bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ 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.

## Version Support Matrix

| 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
Expand Down

0 comments on commit 06523bf

Please sign in to comment.