- copy with github.com/litecoin-project/litecoin
- copy
scrypt.cpp
litecoin/src/crypto/scrypt.cpp - copy
scrypt.h
litecoin/src/crypto/scrypt.h
go get -u github.com/george012/ltc_scrypt_go@latest
sudo apt update
sudo apt install openssl libssl-dev
brew install openssl
vim ~/.bash_profile
#OpenSSL
export OPENSSL_ROOT_DIR=$(brew --prefix openssl)
export OPENSSL_LIBRARIES=$OPENSSL_ROOT_DIR/lib
export OPENSSL_INCLUDE_DIR=$OPENSSL_ROOT_DIR/include
export PKG_CONFIG_PATH=$OPENSSL_ROOT_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
- msys2 and mingw64
- name: Install MSYS2 using choco
if: matrix.os == 'windows-latest'
run: choco install msys2 --params "/InstallDir=C:\msys64"
- name: Setup MSYS2 and install dependencies
if: matrix.os == 'windows-latest'
run: |
C:\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm && pacman -S --noconfirm base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-openssl"
echo "C:\\msys64\\mingw64\\bin" >> $GITHUB_ENV
echo "C:\\msys64\\usr\\bin" >> $GITHUB_ENV
pacman -Syu mingw64-toolchain
go test -v -run ./...