Skip to content

george012/ltc_scrypt_go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. info

2. use

go get -u github.com/george012/ltc_scrypt_go@latest

3. depends_Linux

sudo apt update
sudo apt install openssl libssl-dev

4. depends_Darwin

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

5. depends_Windows

  • 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 

6. Test

go test -v -run ./...