also looking at this
fix(ci): build the SDK types with the repo's own tsc (and pin the pantry action)
#104
29 files
+85
-56
| @@ -276,7 +276,7 @@ pub const BenchmarkSuite = struct { | ||
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 | pub fn generateReport(self: *const BenchmarkSuite, allocator: std.mem.Allocator) ![]const u8 { |
| 279 | var buf = std.ArrayList(u8){ .items = &.{}, .capacity = 0 }; | |
| 279 | var buf = std.ArrayList(u8).empty; | |
| 280 | 280 | errdefer buf.deinit(allocator); |
| 281 | 281 | |
| 282 | 282 | const header = try std.fmt.allocPrint(allocator, "Benchmark Suite: {s}\n", .{self.name}); |
| @@ -301,7 +301,7 @@ pub const BenchmarkSuite = struct { | ||
| 301 | 301 | } |
| 302 | 302 | |
| 303 | 303 | pub fn generateJSON(self: *const BenchmarkSuite, allocator: std.mem.Allocator) ![]const u8 { |
| 304 | var buf = std.ArrayList(u8){ .items = &.{}, .capacity = 0 }; | |
| 304 | var buf = std.ArrayList(u8).empty; | |
| 305 | 305 | errdefer buf.deinit(allocator); |
| 306 | 306 | |
| 307 | 307 | try buf.appendSlice(allocator, "{"); |
| @@ -422,7 +422,7 @@ pub fn benchmarkArrayListOperations(allocator: std.mem.Allocator, operations: us | ||
| 422 | 422 | } |
| 423 | 423 | |
| 424 | 424 | fn arrayListOps(allocator: std.mem.Allocator, ops: usize) !void { |
| 425 | var list = std.ArrayList(usize){ .items = &.{}, .capacity = 0 }; | |
| 425 | var list = std.ArrayList(usize).empty; | |
| 426 | 426 | defer list.deinit(allocator); |
| 427 | 427 | |
| 428 | 428 | var i: usize = 0; |