The CI build uses MSVC to build gpu-post and creates a .dll and .lib file as output. cgo as of go 1.19 cannot link against *.lib files, but needs *.so libraries built with mingw64. The reason the current build works at all is because an old build of gpu-post has been committed to the https://github.com/spacemeshos/post repository that cgo links against.
Update the CI build:
Use mingw64 to build the library and create a *.so file that is packaged in a release
The CI build uses MSVC to build gpu-post and creates a .dll and .lib file as output.
cgo
as ofgo 1.19
cannot link against*.lib
files, but needs*.so
libraries built with mingw64. The reason the current build works at all is because an old build of gpu-post has been committed to the https://github.com/spacemeshos/post repository thatcgo
links against.Update the CI build:
*.so
file that is packaged in a releaseMakefile
s in https://github.com/spacemeshos/post and https://github.com/spacemeshos/go-spacemesh to use the newly built libraries