build: support 0.15.0-dev
Some checks failed
CI / build (-Dbuild-apps, true, ubuntu-latest, 0.14.1) (push) Has been cancelled
CI / build (macos-latest, 0.14.1) (push) Has been cancelled
CI / build (ubuntu-latest, master) (push) Has been cancelled
CI / build (windows-latest, 0.14.1) (push) Has been cancelled

addStaticLibrary -> addLibrary
target and optimize are now in a module
This commit is contained in:
Antoine 2025-07-24 23:08:20 +02:00
parent 45ba485901
commit 43595de12d
3 changed files with 18 additions and 23 deletions

View File

@ -12,10 +12,10 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
zig-version: ["0.14.0"] zig-version: ["0.14.1"]
os: [macos-latest, windows-latest] os: [macos-latest, windows-latest]
include: include:
- zig-version: "0.14.0" - zig-version: "0.14.1"
check-format: true check-format: true
os: ubuntu-latest os: ubuntu-latest
build-options: "-Dbuild-apps" build-options: "-Dbuild-apps"
@ -29,7 +29,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Zig - name: Setup Zig
uses: mlugg/setup-zig@v1 uses: mlugg/setup-zig@v2
with: with:
version: ${{ matrix.zig-version }} version: ${{ matrix.zig-version }}

View File

@ -11,36 +11,30 @@ pub fn build(b: *std.Build) !void {
const upstream = b.dependency("libressl", .{}); const upstream = b.dependency("libressl", .{});
const libressl_common: LibreSslCommon = .{ const libressl_common: LibreSslCommon = .{
.libcrypto = b.addStaticLibrary(.{ .libcrypto = b.addLibrary(.{
.name = "crypto", .name = "crypto",
.target = target, .root_module = b.createModule(.{ .target = target, .optimize = optimize }),
.optimize = optimize,
}), }),
.libssl = b.addStaticLibrary(.{ .libssl = b.addLibrary(.{
.name = "ssl", .name = "ssl",
.target = target, .root_module = b.createModule(.{ .target = target, .optimize = optimize }),
.optimize = optimize,
}), }),
.libtls = b.addStaticLibrary(.{ .libtls = b.addLibrary(.{
.name = "tls", .name = "tls",
.target = target, .root_module = b.createModule(.{ .target = target, .optimize = optimize }),
.optimize = optimize,
}), }),
.apps = .{ .apps = .{
.nc = b.addExecutable(.{ .nc = b.addExecutable(.{
.name = "nc", .name = "nc",
.target = target, .root_module = b.createModule(.{ .target = target, .optimize = optimize }),
.optimize = optimize,
}), }),
.ocspcheck = b.addExecutable(.{ .ocspcheck = b.addExecutable(.{
.name = "ocspcheck", .name = "ocspcheck",
.target = target, .root_module = b.createModule(.{ .target = target, .optimize = optimize }),
.optimize = optimize,
}), }),
.openssl = b.addExecutable(.{ .openssl = b.addExecutable(.{
.name = "openssl", .name = "openssl",
.target = target, .root_module = b.createModule(.{ .target = target, .optimize = optimize }),
.optimize = optimize,
}), }),
}, },
}; };

View File

@ -38,8 +38,9 @@ your_exe.linkLibrary(libressl_dependency.artifact("tls")); // or "ssl", or "cryp
## Zig Version Support Matrix ## Zig Version Support Matrix
| Refname | LibreSSL Version | Zig `0.14.x` | Zig `0.13.x` | Zig `0.12.x` | | Refname | LibreSSL Version | Zig `0.15.0-dev` | Zig `0.14.x` | Zig `0.13.x` | Zig `0.12.x` |
|-----------|------------------|--------------|--------------|--------------| |-----------|------------------|------------------|--------------|--------------|--------------|
| `4.0.0+2` | `4.0.0` | ✅ | ❌ | ❌ | | `4.0.0+3` | `4.0.0` | ✅ | ✅ | ❌ | ❌ |
| `4.0.0+1` | `4.0.0` | ❌ | ✅ | ✅ | | `4.0.0+2` | `4.0.0` | ❌ | ✅ | ❌ | ❌ |
| `3.9.2+1` | `3.9.2` | ❌ | ✅ | ✅ | | `4.0.0+1` | `4.0.0` | ❌ | ❌ | ✅ | ✅ |
| `3.9.2+1` | `3.9.2` | ❌ | ❌ | ✅ | ✅ |