Skip to content

Commit

Permalink
fix: avoid requiring CGO for now (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtemir authored Feb 3, 2024
1 parent ae5a165 commit f6d2f1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
-ldflags="-s -w" \
-ldflags="-X 'github.com/open-sauced/pizza-cli/pkg/utils.writeOnlyPublicPosthogKey=${{ vars.POSTHOG_WRITE_PUBLIC_KEY }}'" \
-ldflags="-X 'github.com/open-sauced/pizza-cli/pkg/utils.Version=${{ needs.release.outputs.release-tag }}'" \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test:
go test ./...

build:
go build -o build/pizza main.go
CGO_ENABLED=0 go build -o build/pizza main.go

install: build
sudo mv build/pizza /usr/local/bin/
Expand Down

0 comments on commit f6d2f1d

Please sign in to comment.