Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 }}

Expand Down
24 changes: 9 additions & 15 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
}),
},
};
Expand Down
11 changes: 6 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` | ❌ | ❌ | ✅ | ✅ |
Loading