Skip to content

Commit fb1f92d

Browse files
committed
use tagged freetype, update CI
1 parent 749604c commit fb1f92d

3 files changed

Lines changed: 6 additions & 39 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ubuntu-latest, windows-latest, macos-latest]
20-
runs-on: ${{matrix.os}}
20+
opt: [Debug, ReleaseFast]
21+
runs-on: ${{ matrix.os }}
2122
steps:
2223
- name: Checkout
2324
uses: actions/checkout@v3
2425
- name: Install Zig
2526
uses: mlugg/setup-zig@v2
26-
- name: Build
27+
- name: Build and run
2728
working-directory: ./example
28-
run: zig build
29+
run: zig build run -Doptimize=${{ matrix.opt }}

libs/freetype/build.zig

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -45,40 +45,6 @@ const ft_sources = [_][]const u8{
4545
"winfonts/winfnt.c",
4646
};
4747

48-
const brotli_sources = [_][]const u8{
49-
"common/constants.c",
50-
"common/context.c",
51-
"common/dictionary.c",
52-
"common/platform.c",
53-
"common/shared_dictionary.c",
54-
"common/transform.c",
55-
"dec/bit_reader.c",
56-
"dec/decode.c",
57-
"dec/huffman.c",
58-
"dec/state.c",
59-
"enc/backward_references.c",
60-
"enc/backward_references_hq.c",
61-
"enc/bit_cost.c",
62-
"enc/block_splitter.c",
63-
"enc/brotli_bit_stream.c",
64-
"enc/cluster.c",
65-
"enc/command.c",
66-
"enc/compound_dictionary.c",
67-
"enc/compress_fragment.c",
68-
"enc/compress_fragment_two_pass.c",
69-
"enc/dictionary_hash.c",
70-
"enc/encode.c",
71-
"enc/encoder_dict.c",
72-
"enc/entropy_encode.c",
73-
"enc/fast_log.c",
74-
"enc/histogram.c",
75-
"enc/literal_cost.c",
76-
"enc/memory.c",
77-
"enc/metablock.c",
78-
"enc/static_dict.c",
79-
"enc/utf8_util.c",
80-
};
81-
8248
pub fn build(b: *std.Build) void {
8349
const target = b.standardTargetOptions(.{});
8450
const optimize = b.standardOptimizeOption(.{});

libs/freetype/build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
},
1010
.dependencies = .{
1111
.freetype = .{
12-
.url = "git+https://gitlab.freedesktop.org/freetype/freetype.git#23b6cd27ff19b70cbf98e058cd2cf0647d5284ff",
13-
.hash = "N-V-__8AAFh-qgDYVLD61be7Obki7zrFTbijJJpvnym4YqAi",
12+
.url = "https://download.savannah.gnu.org/releases/freetype/freetype-2.14.1.tar.gz",
13+
.hash = "N-V-__8AAIT5KwGz955VFk9c5rWaksEC9xVOvGDyR5JBAXnB",
1414
},
1515
},
1616
}

0 commit comments

Comments
 (0)