Skip to content

Commit

Permalink
Use musl-cross for cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Sep 8, 2022
1 parent 56f115d commit 2e558f7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dev:

build:
go mod tidy
GOOS=linux GOARCH=386 go build -ldflags="-extldflags=-static" -tags sqlite_omit_load_extension -o bin/import import.go
CC=x86_64-linux-musl-gcc CXX=x86_64-linux-musl-g++ GOARCH=amd64 GOOS=linux CGO_ENABLED=1 go build -ldflags "-linkmode external -extldflags -static" -o bin/import import.go

import:
sqlite3 -init db/schema.sql db/production.db .quit
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ GitHub Actions daily job that:

- Make
- Go 1.18+ (only for `import.go`)
- `musl-cross` (`brew install FiloSottile/musl-cross/musl-cross`)

### Setup

Expand Down
Binary file modified bin/import
Binary file not shown.

0 comments on commit 2e558f7

Please sign in to comment.