build: support 0.15.0-dev
Some checks are pending
CI / build (-Dbuild-apps, true, ubuntu-latest, 0.14.1) (push) Waiting to run
CI / build (macos-latest, 0.14.1) (push) Waiting to run
CI / build (ubuntu-latest, master) (push) Waiting to run
CI / build (windows-latest, 0.14.1) (push) Waiting to run

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

View File

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

View File

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