forked from crypto-org-chain/cronos
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: windows build in CI fails (crypto-org-chain#868)
* Problem: windows build in CI fails Solution: - patch grocksdb to remove binding of not exported apis - add workflow to test windows build in PR * use crypto-org-chain fork
- Loading branch information
Showing
8 changed files
with
60 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
uname -a | ||
export GOROOT=/mingw64/lib/go | ||
export GOPATH=$HOME/go | ||
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH | ||
export CGO_CFLAGS="-I/mingw64/include/rocksdb" | ||
export CGO_LDFLAGS="-L/mingw64/lib -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4 -lzstd" | ||
echo $PATH | ||
go version | ||
wget https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-rocksdb-7.9.2-1-any.pkg.tar.zst | ||
pacman -U mingw-w64-x86_64-rocksdb-7.9.2-1-any.pkg.tar.zst --noconfirm | ||
COSMOS_BUILD_OPTIONS=rocksdb make build | ||
ls -la ./build/ | ||
mv ./build/cronosd ./build/cronosd.exe | ||
cp /mingw64/bin/libbz2-1.dll ./build | ||
cp /mingw64/bin/libgcc_s_seh-1.dll ./build | ||
cp /mingw64/bin/liblz4.dll ./build | ||
cp /mingw64/bin/librocksdb.dll ./build | ||
cp /mingw64/bin/libsnappy.dll ./build | ||
cp /mingw64/bin/libstdc++-6.dll ./build | ||
cp /mingw64/bin/libwinpthread-1.dll ./build | ||
cp /mingw64/bin/libzstd.dll ./build | ||
cp /mingw64/bin/zlib1.dll ./build |