aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugoreleaser.toml
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-10-30 09:29:38 +0100
committerBjørn Erik Pedersen <[email protected]>2024-10-30 11:46:40 +0100
commit89bd025ebfd2c559039826641702941fc35a7fdb (patch)
tree96b457737db99ffd1a27d502798257f0e7d79db6 /hugoreleaser.toml
parent62567d38205a61134a6822d37a534520772419f1 (diff)
downloadhugo-89bd025ebfd2c559039826641702941fc35a7fdb.tar.gz
hugo-89bd025ebfd2c559039826641702941fc35a7fdb.zip
Build without the deploy feature by default
Build tags setup changed to: * !nodeploy => withdeploy * nodeploy => !withdeploy Also move the deploy feature out into its own release archives. See #12994 for the primary motivation for this change. But this also greatly reduces the number of dependencies in Hugo when you don't need this feature and cuts the binary size greatly. Fixes #12994
Diffstat (limited to 'hugoreleaser.toml')
-rw-r--r--hugoreleaser.toml22
1 files changed, 22 insertions, 0 deletions
diff --git a/hugoreleaser.toml b/hugoreleaser.toml
index d516bd34b..8c3693739 100644
--- a/hugoreleaser.toml
+++ b/hugoreleaser.toml
@@ -120,6 +120,24 @@ archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" }
goarch = "amd64"
[[builds]]
+ path = "container1/unix/extended-withdeploy"
+
+ [builds.build_settings]
+ flags = ["-buildmode", "exe", "-tags", "extended,withdeploy"]
+ env = ["CGO_ENABLED=1"]
+
+ [[builds.os]]
+ goos = "darwin"
+ [builds.os.build_settings]
+ env = ["CGO_ENABLED=1", "CC=o64-clang", "CXX=o64-clang++"]
+ [[builds.os.archs]]
+ goarch = "universal"
+ [[builds.os]]
+ goos = "linux"
+ [[builds.os.archs]]
+ goarch = "amd64"
+
+[[builds]]
path = "container2/linux/extended"
[builds.build_settings]
@@ -174,6 +192,10 @@ archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" }
[archives.archive_settings]
name_template = "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
[[archives]]
+ paths = ["builds/container1/unix/extended-withdeploy/**"]
+ [archives.archive_settings]
+ name_template = "{{ .Project }}_extended_withdeploy_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
+[[archives]]
# Only extended builds in container2.
paths = ["builds/container2/**"]
[archives.archive_settings]