You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
505 B

bin/springer: server/main.go
go build -o bin/springer ./server
2 years ago
# Use zig as the cc to cross-compile mattn/sqlite for linux
#
# working off https://zig.news/kristoff/building-sqlite-with-cgo-for-every-os-4cic
#
# this is basically magic
#
# to run locally:
# docker run -it -v $(pwd)/bin:/app ubuntu /app/springer-linux
bin/springer-linux: server/main.go
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC="zig cc -target x86_64-linux" CXX="zig cc -target x86_64-linux" go build -o bin/springer-linux ./server