From f68b3b743d92f04b7caa9fd79f362beaa29e39b0 Mon Sep 17 00:00:00 2001 From: iquerejeta Date: Thu, 7 Apr 2022 08:45:06 +0100 Subject: [PATCH] building blst in CI --- .github/workflows/haskell.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 5ccb99d6b..d3042848f 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -92,6 +92,30 @@ jobs: echo "LIBSODIUM_PATH=$LIBSODIUM_PATH" echo "$LIBSODIUM_PATH" >> $GITHUB_PATH + - name: Install blst (Linux) + if: matrix.os == 'ubuntu-latest' + run: | + mkdir blst-sources + cd blst-sources + git clone https://github.com/supranational/blst + cd blst + ./build.sh + sudo install libblst.a /usr/local/lib/ + sudo cp bindings/*.h /usr/local/include/ + cd ../.. + + - name: Install blst (MacOS) + if: matrix.os == 'macos-latest' + run: | + mkdir blst-sources + cd blst-sources + git clone https://github.com/supranational/blst + cd blst + ./build.sh + sudo install libblst.a /usr/local/lib/libblst.a + sudo cp bindings/*.h /usr/local/include/ + cd ../.. + - uses: haskell/actions/setup@v1 id: setup-haskell with: