🏗️Building & Testing
WS4SQlite is distributed with binaries for the major combinations of OSs and architectures. I'm trying to do portable builds as much as possible. For these reasons, building ws4sqlite is generally not required, but it could be useful to ensure that the binary matches the sources.
Supported platforms
These are platforms for which we'll provide binaries at the time of the release.
Linux
amd64, arm, arm64, riscv64
Static build for cross-distro compatibility
MacOS (darwin)
amd64, arm64
Windows
amd64, arm64
FreeBSD
amd64
Building
ws4sqlite is a Go(lang) program, that uses Go 1.18. The Go toolset makes compilation and cross-compiling very convenient, but there are some prerequisites.
Go 1.17
Make
I included a Make file to script the building under Linux, so if you have all the prerequisites it should be a matter of:
For MacOS replace Line 3 with:
For Windows, instead of the step at Line 3 do the following. I don't support using make
under windows, though it could be feasible.
Testing
The code includes unit tests. Use the appropriate target for make:
If you don't use this method, beware that a complete test that takes at least three minutes to complete (there are sleep's that ensure this); be sure to provide a suitable timeout value.
Last updated