NixOS-based container for running GitHub actions
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

more debugging

+17 -4
+1
.forgejo/workflows/build.yaml
··· 24 24 25 25 - name: Debug 26 26 run: | 27 + cat /tmp/entrypoint-env.txt 27 28 ps aux 28 29 ls -l /nix/var/nix/db/big-lock 29 30 set
+16 -4
src/tail.zig
··· 10 10 const arena: std.mem.Allocator = init.arena.allocator(); 11 11 const io = init.io; 12 12 13 + { 14 + var t = try std.Io.Dir.openFileAbsolute(io, "/tmp/entrypoint-env.txt", .{ .mode = .read_write }); 15 + defer t.close(io); 16 + var buf: [64]u8 = undefined; 17 + var w = t.writer(io, &buf); 18 + var it = init.environ_map.iterator(); 19 + while (it.next()) |kv| { 20 + try w.interface.print("{s}={s}\n", .{ kv.key_ptr.*, kv.value_ptr.* }); 21 + } 22 + try w.interface.flush(); 23 + } 24 + 13 25 nix: { 14 - if (!std.mem.eql(u8, init.environ_map.get("CI") orelse break :nix, "true")) break :nix; 15 - if (!std.mem.eql(u8, init.environ_map.get("GITHUB_ACTIONS") orelse break :nix, "true")) break :nix; 26 + // if (!std.mem.eql(u8, init.environ_map.get("CI") orelse break :nix, "true")) break :nix; 27 + // if (!std.mem.eql(u8, init.environ_map.get("GITHUB_ACTIONS") orelse break :nix, "true")) break :nix; 16 28 17 29 var it = try init.minimal.args.iterateAllocator(arena); 18 30 defer it.deinit(); ··· 50 62 var argv: std.ArrayList([]const u8) = .empty; 51 63 defer argv.deinit(arena); 52 64 53 - try argv.append(arena, "tail"); 65 + // try argv.append(arena, "tail"); 54 66 55 67 var it = try init.minimal.args.iterateAllocator(arena); 56 68 defer it.deinit(); 57 69 58 - _ = it.next(); 70 + // _ = it.next(); 59 71 while (it.next()) |arg| { 60 72 try argv.append(arena, arg); 61 73 }