Skip to content

Commit

Permalink
fix announceybot templates for 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
renerocksai committed Feb 24, 2024
1 parent 2b926f5 commit 35b8337
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/mastercheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
TAG_NAME: ${{ steps.tag.outputs.version }}
run: |
tools/announceybot.exe update-readme "zig-0.12.0"
sed -i.bak 's/refs\/tags\///' README.md
- name: Commit and push if it has changed
run: |
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ Then, in your `build.zig`'s `build` function, add the following before
.optimize = optimize,
.openssl = false, // set to true to enable TLS support
});
exe.addModule("zap", zap.module("zap"));
exe.root_module.addImport("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
```

Expand Down
8 changes: 6 additions & 2 deletions doc/release-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ Here is a complete `build.zig.zon` example:
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/{tag}.tar.gz",
.hash = "{hash}",
}
},
.paths = .{
"",
},
}
}
Expand All @@ -35,7 +38,8 @@ Then, in your `build.zig`'s `build` function, add the following before
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
.openssl = false, // set to true to enable TLS support
});
exe.addModule("zap", zap.module("zap"));
exe.root_module.addImport("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
```
5 changes: 4 additions & 1 deletion tools/announceybot/release-announcement-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ Modify your `build.zig.zon` like this:
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/{tag}.tar.gz",
.hash = "{hash}",
}
},
.paths = .{
"",
},
}
}
Expand Down
9 changes: 7 additions & 2 deletions tools/announceybot/release-dep-update-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
.dependencies = .{
// zap {tag}
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/{tag}.tar.gz",
// when tagged:
// .url = "https://github.com/zigzap/zap/archive/refs/tags/{tag}.tar.gz",
.url = "https://github.com/zigzap/zap/archive/{tag}.tar.gz",
.hash = "{hash}",
}
},
.paths = .{
"",
},
}
}
```
8 changes: 6 additions & 2 deletions tools/announceybot/release-note-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ Here is a complete `build.zig.zon` example:
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/{tag}.tar.gz",
.hash = "{hash}",
}
},
.paths = .{
"",
},
}
}
Expand All @@ -41,7 +44,8 @@ Then, in your `build.zig`'s `build` function, add the following before
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
.openssl = false, // set to true to enable TLS support
});
exe.addModule("zap", zap.module("zap"));
exe.root_module.addImport("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
```

0 comments on commit 35b8337

Please sign in to comment.