Skip to content

Commit

Permalink
workaround for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DerryAlex committed Nov 2, 2024
1 parent accd1df commit ad6a087
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
paths: [ "src/*", ".github/workflows/prerelease.yml" ]
paths: [ "src/*", "build.zig", ".github/workflows/prerelease.yml" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install libgirepository-2.0-dev
sudo apt-get install libgirepository-2.0-dev gir1.2-gtk-4.0
- uses: mlugg/setup-zig@v1.2.1
with:
Expand Down
23 changes: 12 additions & 11 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,18 @@ pub fn build(b: *std.Build) !void {
run_cmd.addArgs(args);
} else {
run_cmd.addArgs(&.{ "--outputdir", "gtk4" });
run_cmd.addArgs(&.{ "--includedir", "lib/girepository-1.0" });
run_cmd.addArgs(&.{ "--gi-namespaces", "GLib" }); // load glib before glib_*
run_cmd.addArgs(&.{ "--gi-namespaces", "GLibUnix" });
run_cmd.addArgs(&.{ "--gi-namespaces", "GLibWin32" });
run_cmd.addArgs(&.{ "--gi-namespaces", "Gio" }); // load gio before gio_*
run_cmd.addArgs(&.{ "--gi-namespaces", "GioUnix" });
run_cmd.addArgs(&.{ "--gi-namespaces", "GioWin32" });
run_cmd.addArgs(&.{ "--gi-namespaces", "Gdk" }); // load gdk before gdk_*
run_cmd.addArgs(&.{ "--gi-namespaces", "GdkWayland" });
run_cmd.addArgs(&.{ "--gi-namespaces", "GdkX11" });
run_cmd.addArgs(&.{ "--gi-namespaces", "GdkWin32" });
// wrong magic number on CI ???
// run_cmd.addArgs(&.{ "--includedir", "lib/girepository-1.0" });
// run_cmd.addArgs(&.{ "--gi-namespaces", "GLib" }); // load glib before glib_*
// run_cmd.addArgs(&.{ "--gi-namespaces", "GLibUnix" });
// run_cmd.addArgs(&.{ "--gi-namespaces", "GLibWin32" });
// run_cmd.addArgs(&.{ "--gi-namespaces", "Gio" }); // load gio before gio_*
// run_cmd.addArgs(&.{ "--gi-namespaces", "GioUnix" });
// run_cmd.addArgs(&.{ "--gi-namespaces", "GioWin32" });
// run_cmd.addArgs(&.{ "--gi-namespaces", "Gdk" }); // load gdk before gdk_*
// run_cmd.addArgs(&.{ "--gi-namespaces", "GdkWayland" });
// run_cmd.addArgs(&.{ "--gi-namespaces", "GdkX11" });
// run_cmd.addArgs(&.{ "--gi-namespaces", "GdkWin32" });
run_cmd.addArgs(&.{ "--gi-namespaces", "Gtk" });
run_cmd.addArgs(&.{ "--pkg-name", "gtk" });
run_cmd.addArgs(&.{ "--pkg-version", version });
Expand Down

0 comments on commit ad6a087

Please sign in to comment.