mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 14:05:28 +00:00
* feat: generate CPU profiles also adjust memory (heap) profiles ext to `.mem` Signed-off-by: Dwi Siswanto <git@dw1.io> * docs(DESIGN): add total samples for CPU profiles Signed-off-by: Dwi Siswanto <git@dw1.io> * chore(make): trimpath in go-build and append LDFLAGS ifneq "darwin" Signed-off-by: Dwi Siswanto <git@dw1.io> * chore: update goreleaser build * replace `go mod tidy` with `go mod download` and `go mod verify` * adjust indentations * add `-trimpath` flag * set `-pgo` flag to "`auto`" * add `ldflags` * quoting 386 GOARCH value Signed-off-by: Dwi Siswanto <git@dw1.io> * ci: add generate PGO workflow Signed-off-by: Dwi Siswanto <git@dw1.io> * chore(make): set CGO_ENABLED inline in go-build Signed-off-by: Dwi Siswanto <git@dw1.io> * refactor(main): streamline profile file creation Signed-off-by: Dwi Siswanto <git@dw1.io> * dummy: add PGO file (DO NOT MERGE) Signed-off-by: Dwi Siswanto <git@dw1.io> * feat: add main test (benchmark) Signed-off-by: Dwi Siswanto <git@dw1.io> * chore(make): add build-test Signed-off-by: Dwi Siswanto <git@dw1.io> * Revert "dummy: add PGO file (DO NOT MERGE)" This reverts commit ee877205f729be2f054c7d7d484a9244121acce6. * test(main): set Output to /dev/null Signed-off-by: Dwi Siswanto <git@dw1.io> * feat(output): add option to disable stdout via env var Signed-off-by: Dwi Siswanto <git@dw1.io> * test(main): set `types.Options.Output` to empty Signed-off-by: Dwi Siswanto <git@dw1.io> * chore(generate-pgo): add TODO note Signed-off-by: Dwi Siswanto <git@dw1.io> * ci: add reusable perf regression workflow Signed-off-by: Dwi Siswanto <git@dw1.io> * ci(perf-regression): enabe `DISABLE_STDOUT` Signed-off-by: Dwi Siswanto <git@dw1.io> --------- Signed-off-by: Dwi Siswanto <git@dw1.io>
56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
before:
|
|
hooks:
|
|
- go mod download
|
|
- go mod verify
|
|
|
|
builds:
|
|
- main: cmd/nuclei/main.go
|
|
binary: nuclei
|
|
id: nuclei-cli
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos: [windows,linux,darwin]
|
|
goarch: [amd64,'386',arm,arm64]
|
|
ignore:
|
|
- goos: darwin
|
|
goarch: '386'
|
|
- goos: windows
|
|
goarch: arm
|
|
- goos: windows
|
|
goarch: arm64
|
|
flags:
|
|
- -trimpath
|
|
- -pgo=auto
|
|
ldflags:
|
|
- -s
|
|
- -w
|
|
|
|
#- main: cmd/tmc/main.go
|
|
# binary: tmc
|
|
# id: annotate
|
|
#
|
|
# env:
|
|
# - CGO_ENABLED=0
|
|
#
|
|
# goos: [linux]
|
|
# goarch: [amd64]
|
|
|
|
archives:
|
|
- format: zip
|
|
id: nuclei
|
|
builds: [nuclei-cli]
|
|
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}'
|
|
|
|
checksum:
|
|
algorithm: sha256
|
|
|
|
announce:
|
|
slack:
|
|
enabled: true
|
|
channel: '#release'
|
|
username: GoReleaser
|
|
message_template: 'New Release: {{ .ProjectName }} {{.Tag}} is published! Check it out at {{ .ReleaseURL }}'
|
|
|
|
discord:
|
|
enabled: true
|
|
message_template: '**New Release: {{ .ProjectName }} {{.Tag}}** is published! Check it out at {{ .ReleaseURL }}' |