Skip to content

Commit 26b3876

Browse files
authored
Merge pull request #53 from kivikakk/use-source-libpcre
Use source libpcre build.
2 parents 57d8128 + 6ee59c7 commit 26b3876

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

.github/workflows/zig.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ jobs:
88
test-linux:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
with:
13-
submodules: recursive
11+
- uses: actions/checkout@v4
1412
- uses: goto-bus-stop/setup-zig@v2
1513
with:
1614
version: 0.12.0
@@ -19,21 +17,26 @@ jobs:
1917
test-macos:
2018
runs-on: macos-latest
2119
steps:
22-
- uses: actions/checkout@v3
23-
with:
24-
submodules: recursive
20+
- uses: actions/checkout@v4
2521
- uses: goto-bus-stop/setup-zig@2a9625d550eefc3a9b1a43d342ad655f563f8241
2622
with:
2723
version: 0.12.0
2824
- run: brew install pcre
2925
- run: zig build
3026
- run: zig build test
27+
test-windows:
28+
runs-on: windows-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: goto-bus-stop/setup-zig@v2
32+
with:
33+
version: 0.12.0
34+
- run: zig build
35+
- run: zig build test
3136
lint:
3237
runs-on: ubuntu-latest
3338
steps:
34-
- uses: actions/checkout@v3
35-
with:
36-
submodules: recursive
39+
- uses: actions/checkout@v4
3740
- uses: goto-bus-stop/setup-zig@v2
3841
with:
3942
version: 0.12.0

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/.zig-cache
2+
/zig-cache
23
/zig-out

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Zig port of [Comrak](https://github.com/kivikakk/comrak). Maintains 100% spec-c
1818
$ zig fetch --save https://github.com/kivikakk/koino/archive/<commit hash>.tar.gz
1919
```
2020

21-
* [Follow the `libpcre.zig` dependency install instructions](https://github.com/kivikakk/libpcre.zig/blob/main/README.md) for your operating system.
2221
* Add the following to your `build.zig`'s `build` function:
2322
```zig
2423
const koino_pkg = b.dependency("koino", .{ .optimize = optimize, .target = target });

build.zig.zon

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
.minimum_zig_version = "0.12.0",
55
.dependencies = .{
66
.@"libpcre.zig" = .{
7-
.url = "https://github.com/kivikakk/libpcre.zig/archive/9522ad9bcce76ce608ac62097450d4eac7436d9c.tar.gz",
8-
.hash = "1220fa274f41744bc60b284f9264705f772b98afd2ed219cebb6cec744422e8e2692",
7+
.url = "https://github.com/kivikakk/libpcre.zig/archive/0f3e120c75c297f7d88a5c698d941a9e730a2059.tar.gz",
8+
.hash = "12208c8c5b46df969207ca1458b95ebbe988892d1f0e028d1fb95bd58cf55bca6628",
99
},
1010
.@"htmlentities.zig" = .{
1111
.url = "https://github.com/kivikakk/htmlentities.zig/archive/6c6ab63c9fce8317049d332377db760a2c8932e7.tar.gz",

0 commit comments

Comments
 (0)