Skip to content

Commit

Permalink
Run tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mlafeldt committed Jan 22, 2025
1 parent eaf30ee commit 85eca9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ jobs:
- uses: mlugg/setup-zig@v1
with:
version: "0.13.0"
- uses: astral-sh/setup-uv@v5
- run: zig build -Dduckdb-version=${{ matrix.duckdb_version }} -Dinstall-headers --verbose --summary new
- run: DUCKDB_METADATA_PLATFORM=linux_amd64_gcc4 zig build test -Dduckdb-version=${{ matrix.duckdb_version }} --summary none
4 changes: 3 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ pub fn build(b: *std.Build) !void {

// TODO: Rewrite the metadata script in Zig
const ext_path = out: {
const platform_name = std.process.getEnvVarOwned(b.allocator, "DUCKDB_METADATA_PLATFORM") catch @tagName(platform);

const cmd = b.addSystemCommand(&.{ "uv", "run", "--python=3", metadata_script });
cmd.addArgs(&.{ "--extension-name", ext.name });
cmd.addArgs(&.{ "--extension-version", ext_version });
cmd.addArgs(&.{ "--duckdb-platform", @tagName(platform) });
cmd.addArgs(&.{ "--duckdb-platform", platform_name });
cmd.addArgs(&.{ "--duckdb-version", "v0.0.1" }); // TODO: Set this based on the DuckDB version
cmd.addArg("--library-file");
cmd.addArtifactArg(ext);
Expand Down

0 comments on commit 85eca9c

Please sign in to comment.