Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: use Task #1535

Merged
merged 22 commits into from
Apr 17, 2024
Prev Previous commit
Next Next commit
Statically link
  • Loading branch information
fortuna committed Apr 17, 2024
commit 7af91b5080b3b8aaf8449818438daaa78f2bd243
3 changes: 2 additions & 1 deletion src/shadowbox/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ tasks:
make 'bin/{{.TARGET_OS}}-{{.TARGET_ARCH}}/prometheus'
cp 'bin/{{.TARGET_OS}}-{{.TARGET_ARCH}}/prometheus' '{{.BIN_DIR}}/'
}
- GOOS={{.GOOS}} GOARCH={{.GOARCH}} go build -ldflags='-s -w -X main.version=embedded' -o '{{.BIN_DIR}}/' github.com/Jigsaw-Code/outline-ss-server/cmd/outline-ss-server
# Set CGO_ENABLED=0 to force static linkage. See https://mt165.co.uk/blog/static-link-go/.
- GOOS={{.GOOS}} GOARCH={{.GOARCH}} CGO_ENABLED=0 go build -ldflags='-s -w -X main.version=embedded' -o '{{.BIN_DIR}}/' github.com/Jigsaw-Code/outline-ss-server/cmd/outline-ss-server

start:
desc: Run the Outline server locally
Expand Down
Loading