build: support 0.15.0-dev
Some checks failed
Some checks failed
addStaticLibrary -> addLibrary target and optimize are now in a module
This commit is contained in:
parent
45ba485901
commit
43595de12d
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
@ -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 }}
|
||||||
|
|
||||||
|
24
build.zig
24
build.zig
@ -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,
|
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
11
readme.md
11
readme.md
@ -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` | ❌ | ❌ | ✅ | ✅ |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user