Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub actions CI #4708

Merged
merged 2 commits into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/build-secp256k1.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
# I don't understand why this just vanishes.
export PATH=/usr/bin:$PATH

echo ======== env =======
env | grep CI_
echo ========
echo $PATH
echo ========
git clone https://github.com/bitcoin-core/secp256k1
cd secp256k1
git switch $SECP256K1_REF --detach
./autogen.sh
./configure $CI_SECP_FLAGS --enable-module-schnorrsig --enable-experimental
make
make check
$CI_SECP_INSTALL_CMD make install
cd ..
5 changes: 5 additions & 0 deletions .github/workflows/cabal.project.local.ci.Darwin
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package cardano-crypto-praos
flags: -external-libsodium-vrf

package HsOpenSSL
flags: +use-pkg-config
5 changes: 5 additions & 0 deletions .github/workflows/cabal.project.local.ci.Linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package cardano-crypto-praos
flags: -external-libsodium-vrf

package HsOpenSSL
flags: +use-pkg-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package cardano-crypto-praos
flags: -external-libsodium-vrf

package HsOpenSSL
flags: +use-pkg-config
29 changes: 12 additions & 17 deletions .github/workflows/github-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,13 @@ jobs:
sudo apt-get -y remove --purge software-properties-common
sudo apt-get -y autoremove

- name: Install secp256k1 (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get -y install autoconf automake libtool
mkdir secp256k1-sources
cd secp256k1-sources
git clone https://github.com/bitcoin-core/secp256k1.git
cd secp256k1
git reset --hard $SECP256K1_REF
./autogen.sh
./configure --prefix=/usr --enable-module-schnorrsig --enable-experimental
make
make check
sudo make install
cd ../..
- name: "LINUX: Install secp256k1"
if: runner.os != 'Windows'
shell: bash
env:
CI_SECP_FLAGS: "--prefix=/usr"
CI_SECP_INSTALL_CMD: sudo
run: bash .github/workflows/build-secp256k1.bash

- name: Cabal update
run: cabal update
Expand All @@ -75,8 +67,11 @@ jobs:
cat cabal.project | sed 's|reorder-goals: True|reorder-goals: False|g' > cabal.project.tmp
mv cabal.project.tmp cabal.project

- name: Use cabal.project.local.github-pages
run: cp .github/workflows/cabal.project.local.github-pages cabal.project.local
- name: combine github-pages, and machine local project files.
run: |
cat .github/workflows/cabal.project.local.github-pages \
".github/workflows/cabal.project.local.ci.$(uname -s)" \
| tee cabal.project.local

- name: Dry run
run: |
Expand Down
Loading