build: support 0.14.0
Unfortunately, this has irreconcilable incompatibilities with previous versions of zig, due to the build.zig.zon schema changes. Support for older versions has been dropped.
This commit is contained in:
parent
fd0fe77715
commit
18d16b2663
12
.github/workflows/ci.yaml
vendored
12
.github/workflows/ci.yaml
vendored
@ -12,15 +12,17 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
zig-version: ["0.13.0"]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
zig-version: ["0.14.0"]
|
||||
os: [macos-latest, windows-latest]
|
||||
include:
|
||||
- zig-version: "0.12.1"
|
||||
os: ubuntu-latest
|
||||
- zig-version: "master"
|
||||
- zig-version: "0.14.0"
|
||||
check-format: true
|
||||
os: ubuntu-latest
|
||||
build-options: "-Dbuild-apps"
|
||||
|
||||
- zig-version: "master"
|
||||
os: ubuntu-latest
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
@ -151,7 +151,7 @@ pub fn build(b: *std.Build) !void {
|
||||
} else {
|
||||
build_asm = false;
|
||||
}
|
||||
} else if (tinfo.isDarwin() and tinfo.cpu.arch == .x86_64) {
|
||||
} else if (tinfo.os.tag.isDarwin() and tinfo.cpu.arch == .x86_64) {
|
||||
libressl_common.libcrypto.addCSourceFiles(.{
|
||||
.root = crypto_srcroot,
|
||||
.files = libcrypto_macos_x86_64_asm,
|
||||
@ -338,7 +338,7 @@ pub fn build(b: *std.Build) !void {
|
||||
libressl_common.linkSystemLibrary("bcrypt");
|
||||
},
|
||||
|
||||
else => if (tinfo.isDarwin()) {
|
||||
else => if (tinfo.os.tag.isDarwin()) {
|
||||
libressl_common.libcrypto.addCSourceFiles(.{
|
||||
.root = crypto_srcroot,
|
||||
.files = libcrypto_unix_sources,
|
||||
|
@ -1,11 +1,12 @@
|
||||
.{
|
||||
.name = "libressl",
|
||||
.name = .libressl,
|
||||
.fingerprint = 0x203FA82BE0954AFA,
|
||||
.version = "4.0.0",
|
||||
.minimum_zig_version = "0.12.0",
|
||||
.minimum_zig_version = "0.14.0",
|
||||
.dependencies = .{
|
||||
.libressl = .{
|
||||
.url = "https://github.com/libressl/portable/releases/download/v4.0.0/libressl-4.0.0.tar.gz",
|
||||
.hash = "1220c6577f1aa9137d3c200b804838fd71315388eec5d4c9313550143d02fe69308b",
|
||||
.hash = "N-V-__8AAGvDTQHGV38aqRN9PCALgEg4_XExU4juxdTJMTVQ",
|
||||
},
|
||||
},
|
||||
.paths = .{
|
||||
|
@ -38,7 +38,8 @@ your_exe.linkLibrary(libressl_dependency.artifact("tls")); // or "ssl", or "cryp
|
||||
|
||||
## Zig Version Support Matrix
|
||||
|
||||
| Refname | LibreSSL Version | Zig `0.12.x` | Zig `0.13.x` | Zig `0.14.0-dev` |
|
||||
| Refname | LibreSSL Version | Zig `0.12.x` | Zig `0.13.x` | Zig `0.14.x` |
|
||||
|-----------|------------------|--------------|--------------|------------------|
|
||||
| `3.9.2+1` | `3.9.2` | ✅ | ✅ | ✅ |
|
||||
| `4.0.0+1` | `4.0.0` | ✅ | ✅ | ✅ |
|
||||
| `3.9.2+1` | `3.9.2` | ✅ | ✅ | ❌ |
|
||||
| `4.0.0+1` | `4.0.0` | ✅ | ✅ | ❌ |
|
||||
| `4.0.0+2` | `4.0.0` | ❌ | ❌ | ✅ |
|
||||
|
Loading…
x
Reference in New Issue
Block a user