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
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Checks every pull request and every push to main: formatting, a build for each desktop OS, the
# build's `test` step if it has one, and (never failing the run) a build against fizzy main.
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
uses: fizzyedit/plugin-build-action/.github/workflows/check.yml@v7
with:
zig-version: "0.16.0"
# secrets:
# build_env: ${{ secrets.MY_BUILD_ENV }} # as in release.yml, if the build needs one
2 changes: 1 addition & 1 deletion bridge/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ pub const Bridge = struct {
const b64 = try arena.alloc(u8, std.base64.standard.Encoder.calcSize(png.len));
_ = std.base64.standard.Encoder.encode(b64, png);
const note = try std.fmt.allocPrint(arena, "{s}\n{d}x{d} (from {d}x{d}); fizzy {d} ms, here {d} ms, {d} KiB", .{
path, size.w, size.h, cw, ch,
path, size.w, size.h, cw, ch,
(t1 - t0) / std.time.ns_per_ms, (t2 - t1) / std.time.ns_per_ms, png.len / 1024,
});
return reply(out, id, .{ .result = .{
Expand Down
Loading