Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v2
with:
version: "0.16.0"
version: "0.17.0"
- name: Build every shape
run: |
for shape in minimal studio endless; do
Expand Down
6 changes: 3 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub fn build(b: *std.Build) !void {

const run_fizzy = b.addRunArtifact(exe);
run_fizzy.step.dependOn(b.getInstallStep());
if (b.args) |args| run_fizzy.addArgs(args);
run_fizzy.addPassthruArgs();
b.step("run-fizzy", "Run the fizzy app in the shape -Dshape picks").dependOn(&run_fizzy.step);

// A plain dvui app with tape playback: dvui as any app has it (the SDK pins it, the app picks
Expand All @@ -92,7 +92,7 @@ pub fn build(b: *std.Build) !void {
b.step("replay", "Build the replay app").dependOn(&install_replay.step);
const run_replay = b.addRunArtifact(replay_exe);
run_replay.step.dependOn(&install_replay.step);
if (b.args) |args| run_replay.addArgs(args);
run_replay.addPassthruArgs();
b.step("run-replay", "Run the replay app: a plain dvui app with tape playback").dependOn(&run_replay.step);

// A plain dvui app on fizzy's backend (`dvui/main.zig`): dvui and the backend from fizzy, its
Expand All @@ -111,6 +111,6 @@ pub fn build(b: *std.Build) !void {
b.step("dvui", "Build the dvui app").dependOn(&install_dvui.step);
const run_dvui = b.addRunArtifact(dvui_exe);
run_dvui.step.dependOn(&install_dvui.step);
if (b.args) |args| run_dvui.addArgs(args);
run_dvui.addPassthruArgs();
b.step("run-dvui", "Run a plain dvui app on fizzy's backend, its dvui.osWindows OS windows").dependOn(&run_dvui.step);
}
14 changes: 7 additions & 7 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
.name = .fizzy_example_app,
.version = "0.1.0",
.fingerprint = 0x70a7611209421df7,
.minimum_zig_version = "0.16.0",
.minimum_zig_version = "0.17.0",
.dependencies = .{
// Fizzy, the whole repo: an app builds on its framework, not only the plugin SDK. Pinned
// by commit; fizzy's CI builds this repo against each of its pull requests, so a change
// there that breaks an outside app fails before it lands.
.fizzy = .{
.url = "https://github.com/fizzyedit/fizzy/archive/75fd7f0ed1440432893238f75664e9680a56a123.tar.gz",
.hash = "fizzy-0.2.0-c46aVj4MkABq503RNbfyqugEU7A-BkJreTBFDhNbl6uF",
.url = "git+https://github.com/fizzyedit/fizzy#44ff62a7f757dbeca68bcc63df10967f12867f09",
.hash = "fizzy-0.2.0-c46aVk04ogAB94dagVVhnnXC7aQkakA2xI8itTEu3u2G",
},
// The plugins this app bundles beyond fizzy's own: fizzyedit/example-plugin, as any
// plugin from its own repo, and this app's own, which also builds alone as a dylib
// (`cd plugins/shader && zig build`).
.hello = .{
.url = "https://github.com/fizzyedit/example-plugin/archive/838041afce45.tar.gz",
.hash = "hello-0.1.0-c1Gg4rQXAAA7Ea4vZqD4jAS7eLtXJW3QglYM4HB-17Lw",
.url = "git+https://github.com/fizzyedit/example-plugin#592a7386f3a27e20df53dff9b1e2f854ffad7a7b",
.hash = "hello-0.1.0-c1Gg4roXAABn7yCeQrlZVv3QJ7mAHsii6gFe1E6R2H7r",
},
.shader = .{ .path = "plugins/shader" },
// The plugin SDK alone, for the replay app: its pinned dvui and `tape` / `replay`, with
// nothing of fizzy the app.
.fizzy_sdk = .{
.url = "https://github.com/fizzyedit/fizzy/releases/download/sdk-v0.2.20/fizzy-sdk-v0.2.20.tar.gz",
.hash = "fizzy-0.2.20-SGBwY7BcIQAqHKHzaj0vwADkUQNdpiap19SmKZ29Rp0W",
.url = "https://github.com/fizzyedit/fizzy/releases/download/sdk-v0.2.30/fizzy-sdk-v0.2.30.tar.gz",
.hash = "fizzy-0.2.30-SGBwY1QnJwDznUMVnSLATxXgH2e8_Vz7eMwLj9UQ0sVU",
},
},
.paths = .{ "build.zig", "build.zig.zon", "shapes", "plugins", "replay", "dvui", "README.md", "LICENSE" },
Expand Down
6 changes: 3 additions & 3 deletions plugins/shader/build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.{
.name = .shader,
.version = "0.1.0",
.minimum_zig_version = "0.16.0",
.minimum_zig_version = "0.17.0",
.paths = .{ "build.zig", "build.zig.zon", "plugin.zig", "plugin.zig.zon", "metaballs.glsl" },
.fingerprint = 0xfff39e28b2ebba24,
.dependencies = .{
.fizzy = .{
// The published SDK: a plugin builds from a clean clone of its own repo.
.url = "https://github.com/fizzyedit/fizzy/releases/download/sdk-v0.2.18/fizzy-sdk-v0.2.18.tar.gz",
.hash = "fizzy-0.2.18-SGBwYzTcHgB679qozyk1xNBTyrOQYoKUNI5lvEX5_v6a",
.url = "https://github.com/fizzyedit/fizzy/releases/download/sdk-v0.2.30/fizzy-sdk-v0.2.30.tar.gz",
.hash = "fizzy-0.2.30-SGBwY1QnJwDznUMVnSLATxXgH2e8_Vz7eMwLj9UQ0sVU",
},
},
}
Loading