Skip to content

Commit

Permalink
upgrade to zig 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clickingbuttons committed Aug 4, 2023
1 parent 62cad2d commit a157f6e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
uses: actions/configure-pages@v2
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0-dev.3937+78eb3c561
- run: zig build-lib src/lib.zig -femit-docs=docs
version: 0.11.0
- run: zig build-lib src/lib.zig -femit-docs=docs -fno-emit-bin
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0-dev.3937+78eb3c561
version: 0.11.0
- run: zig build test
- run: pip install pyarrow
- run: zig build test-integration
Expand Down
10 changes: 5 additions & 5 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.{
.name = "arrow-zig",
.version = "0.0.1",
.version = "0.0.2",

.dependencies = .{
.@"flatbuffers-zig" = .{
.url = "https://github.com/clickingbuttons/flatbuffers-zig/archive/0.0.1.tar.gz",
.hash = "12208d20385de50fd7f68519e2f485639df1b22e7dbe9417a774833fe5501744121a",
.url = "https://github.com/clickingbuttons/flatbuffers-zig/archive/0.0.2.tar.gz",
.hash = "12209f877dd1b9d95905f1de79f41249df344fbd2700510196978df4af94e0abb6f2"
},
.lz4 = .{
.url = "https://github.com/clickingbuttons/lz4/archive/refs/tags/0.0.3.tar.gz",
.hash = "12202bb31c32e2669ab9700627c5cc52e79b85b08397467d9a99637bff8cffd77a1b",
.url = "https://github.com/clickingbuttons/lz4/archive/refs/tags/0.0.4.tar.gz",
.hash = "12207e29fd690e26b57091f92181c5fe1cc88b9b908aecff98ca0773bdc45ec7decf",
},
}
}
2 changes: 1 addition & 1 deletion src/ipc/reader.zig
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ pub fn Reader(comptime ReaderType: type) type {
const n_read: usize = if (compression) |c| brk: {
switch (c.codec) {
.lz4__frame => {
var stream = lz4.decompressStream(self.arena.allocator(), self.source);
var stream = lz4.decompressStream(self.arena.allocator(), self.source, true);
defer stream.deinit();
break :brk try stream.reader().readAll(res);
},
Expand Down
Binary file modified testdata/sample_written.arrow
Binary file not shown.

0 comments on commit a157f6e

Please sign in to comment.