Skip to content

Commit

Permalink
Merge pull request #393 from csett86/disable-cgo
Browse files Browse the repository at this point in the history
CGO disabled to allow running on older distros
  • Loading branch information
kegsay committed Mar 5, 2024
2 parents 6db85e6 + d70848c commit cfff8bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- run: mkdir build
- run: go build -trimpath -o build/syncv3_${{ matrix.os }}_${{ matrix.arch }} ./cmd/syncv3
env:
CGO_ENABLED: 0
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
- name: "Upload binary as artifact"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ location /.well-known/matrix/client {
There are two ways to run the proxy:
- Compiling from source:
```
$ go build ./cmd/syncv3
$ CGO_ENABLED=0 go build ./cmd/syncv3
$ SYNCV3_SECRET=$(cat .secret) SYNCV3_SERVER="https://matrix-client.matrix.org" SYNCV3_DB="user=$(whoami) dbname=syncv3 sslmode=disable password='DATABASE_PASSWORD_HERE'" SYNCV3_BINDADDR=0.0.0.0:8008 ./syncv3
```

Expand Down Expand Up @@ -192,7 +192,7 @@ Then send `profile.pprof` to someone who will then run `go tool pprof -http :565
Sanity check everything builds:

```shell
go build ./cmd/syncv3
CGO_ENABLED=0 go build ./cmd/syncv3
go list ./... | xargs -n1 go test -c -o /dev/null
```

Expand Down

0 comments on commit cfff8bc

Please sign in to comment.