File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff 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-
8248pub fn build (b : * std.Build ) void {
8349 const target = b .standardTargetOptions (.{});
8450 const optimize = b .standardOptimizeOption (.{});
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments