Compare commits
13 Commits
2f5d617aab
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
43595de12d | ||
45ba485901
|
|||
34751eeb87
|
|||
18d16b2663
|
|||
![]() |
fd0fe77715 | ||
7aa9871c8c
|
|||
991d09a09e
|
|||
9530f3d561
|
|||
d9d586555e
|
|||
02abfefee4
|
|||
![]() |
5ba009c755 | ||
a373b82991
|
|||
a9c2b0b825
|
19
.github/workflows/ci.yaml
vendored
19
.github/workflows/ci.yaml
vendored
@@ -2,8 +2,6 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@@ -14,21 +12,24 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
zig-version: ["0.13.0"]
|
zig-version: ["0.14.1"]
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [macos-latest, windows-latest]
|
||||||
include:
|
include:
|
||||||
- zig-version: "0.12.1"
|
- zig-version: "0.14.1"
|
||||||
os: ubuntu-latest
|
|
||||||
- zig-version: "master"
|
|
||||||
check-format: true
|
check-format: true
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
|
build-options: "-Dbuild-apps"
|
||||||
|
|
||||||
|
- zig-version: "master"
|
||||||
|
os: ubuntu-latest
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
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 }}
|
||||||
|
|
||||||
@@ -37,4 +38,4 @@ jobs:
|
|||||||
run: zig fmt --ast-check --check .
|
run: zig fmt --ast-check --check .
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: zig build --summary all
|
run: zig build ${{ matrix.build-options }} --summary all
|
||||||
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.zig-cache
|
||||||
|
zig-out
|
@@ -1,11 +1,12 @@
|
|||||||
.{
|
.{
|
||||||
.name = "libressl",
|
.name = .libressl,
|
||||||
.version = "3.9.2",
|
.fingerprint = 0x203FA82BE0954AFA,
|
||||||
.minimum_zig_version = "0.12.0",
|
.version = "4.0.0",
|
||||||
|
.minimum_zig_version = "0.14.0",
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.libressl = .{
|
.libressl = .{
|
||||||
.url = "https://github.com/libressl/portable/releases/download/v3.9.2/libressl-3.9.2.tar.gz",
|
.url = "https://github.com/libressl/portable/releases/download/v4.0.0/libressl-4.0.0.tar.gz",
|
||||||
.hash = "1220713b293eab87698edf5d6b9bbacf6c17684e65c42da2ad00da6e7e9cf1df5517",
|
.hash = "N-V-__8AAGvDTQHGV38aqRN9PCALgEg4_XExU4juxdTJMTVQ",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
.paths = .{
|
.paths = .{
|
||||||
|
17
readme.md
17
readme.md
@@ -10,9 +10,9 @@ This project currently builds the three main LibreSSL libraries as static librar
|
|||||||
- `libssl`: OpenSSL 1.1 compatibility layer
|
- `libssl`: OpenSSL 1.1 compatibility layer
|
||||||
- `libtls`: LibreSSL's new cryptography API
|
- `libtls`: LibreSSL's new cryptography API
|
||||||
|
|
||||||
Operating systems and hardware architectures are supported on a best-effort basis. Building for Linux, macOS, and Windows (mingw64) is directly tested by CI.
|
Operating systems and hardware architectures are supported on a best-effort basis, and patches to add additional OS/arch support are welcome. Building for Linux (`x86_64`), macOS (`aarch64`), and Windows (`x86_64` via `mingw64`) is directly tested by CI.
|
||||||
|
|
||||||
The command line programs `nc`, `ocspcheck`, and `openssl` are **not** currently built by this build system.
|
The command-line programs `nc`, `ocspcheck`, and `openssl` are not built by default, and building them when targeting Windows is not supported. Building the command-line programs may be enabled by specifing the `-Dbuild-apps` option to `zig build`
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ First, update your `build.zig.zon`:
|
|||||||
```sh
|
```sh
|
||||||
# Initialize a `zig build` project if you haven't already
|
# Initialize a `zig build` project if you haven't already
|
||||||
zig init
|
zig init
|
||||||
# replace <refname> with the version you want to use, e.g. 3.9.2
|
# replace <refname> with the version you want to use, e.g. 4.0.0
|
||||||
zig fetch --save git+https://github.com/allyourcodebase/libressl#<refname>
|
zig fetch --save git+https://github.com/allyourcodebase/libressl#<refname>
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -36,8 +36,11 @@ const libressl_dependency = b.dependency("libressl", .{
|
|||||||
your_exe.linkLibrary(libressl_dependency.artifact("tls")); // or "ssl", or "crypto"
|
your_exe.linkLibrary(libressl_dependency.artifact("tls")); // or "ssl", or "crypto"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Version Support Matrix
|
## 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.15.0-dev` | Zig `0.14.x` | Zig `0.13.x` | Zig `0.12.x` |
|
||||||
|----------|------------------|--------------|--------------|------------------|
|
|-----------|------------------|------------------|--------------|--------------|--------------|
|
||||||
| `3.9.2` | `3.9.2` | ✅ | ✅ | ✅ |
|
| `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` | ❌ | ❌ | ✅ | ✅ |
|
||||||
|
Reference in New Issue
Block a user