diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..84280cd --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/bridge/main.zig b/bridge/main.zig index 9746f54..8123f29 100644 --- a/bridge/main.zig +++ b/bridge/main.zig @@ -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 = .{