mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
Update windows-secp256k1 github action (#1428)
Based on https://github.com/input-output-hk/ouroboros-network/pull/3687
This commit is contained in:
parent
942108ec13
commit
9987a666f2
7
.github/workflows/windows-secp256k1.yml
vendored
7
.github/workflows/windows-secp256k1.yml
vendored
@ -32,9 +32,11 @@ jobs:
|
||||
cd secp256k1
|
||||
unzip ../secp256k1.zip
|
||||
cd ..
|
||||
export PKG_CONFIG_PATH="$(readlink -f secp256k1/lib/pkgconfig)"
|
||||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH;$(readlink -f secp256k1/lib/pkgconfig | sed 's|^/d|D:|g' | tr / '\\')"
|
||||
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
|
||||
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >> $GITHUB_ENV
|
||||
export SECP256K1_PATH="$(readlink -f secp256k1/bin | tr / '\\')"
|
||||
export SECP256K1_PATH="$(readlink -f secp256k1/bin | sed 's|^/d|D:|g' | tr / '\\')"
|
||||
echo "SECP256K1_PATH=$SECP256K1_PATH"
|
||||
echo "$SECP256K1_PATH" >> $GITHUB_PATH
|
||||
|
||||
- name: Cabal update
|
||||
@ -45,6 +47,5 @@ jobs:
|
||||
cabal unpack secp256k1-haskell
|
||||
cd secp256k1-haskell-*
|
||||
cabal build --enable-tests
|
||||
cp ../secp256k1/bin/*.dll dist-newstyle/build/x86_64-windows/ghc-*/secp256k1-haskell-*/t/spec/build/spec/
|
||||
cabal test
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user