Skip to content

Commit 05ce8b2

Browse files
authored
Merge pull request #3 from techatrix/dev
modernize this port
2 parents d055840 + 6a19efb commit 05ce8b2

15 files changed

Lines changed: 85 additions & 1005 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
zig-version: [latest]
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
include:
20+
- zig-version: "master"
21+
os: ubuntu-latest
22+
- zig-version: 0.15.2
23+
os: ubuntu-latest
24+
runs-on: ${{ matrix.os }}
25+
continue-on-error: ${{ matrix.zig-version == 'master' }}
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v6
29+
30+
- name: Setup Zig
31+
uses: mlugg/setup-zig@v2
32+
with:
33+
version: ${{ matrix.zig-version }}
34+
35+
- name: Check Formatting
36+
run: zig fmt --ast-check --check .
37+
38+
- name: Build
39+
run: zig build --summary new

‎README.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1+
[![CI](https://github.com/allyourcodebase/harfbuzz/actions/workflows/ci.yaml/badge.svg)](https://github.com/allyourcodebase/harfbuzz/actions)
2+
13
# harfbuzz
24

35
This is [harfbuzz](https://harfbuzz.github.io/) packaged for [Zig](https://ziglang.org/).
46

7+
## Installation
8+
9+
First, update your `build.zig.zon`:
10+
11+
```
12+
# Initialize a `zig build` project if you haven't already
13+
zig init
14+
zig fetch --save git+https://github.com/allyourcodebase/harfbuzz.git
15+
```
16+
17+
You can then import `harfbuzz` in your `build.zig` with:
18+
19+
```zig
20+
const harfbuzz_dependency = b.dependency("harfbuzz", .{
21+
.target = target,
22+
.optimize = optimize,
23+
});
24+
your_exe.root_module.linkLibrary(harfbuzz_dependency.artifact("harfbuzz"));
25+
```

‎blob.zig‎

Lines changed: 0 additions & 126 deletions
This file was deleted.

0 commit comments

Comments
 (0)