Skip to content

Commit

Permalink
Added Fulcrum SPV server to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
caheredia committed Sep 5, 2022
1 parent 5f6fd79 commit cc75179
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/repro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
matrix:
# Working: coldcard, lnd, bitcoin-core, mycelium-android, zap-android, simple-bitcoin-wallet, wasabi, sparrow, blockstream-green
# WIP: trezor-firmware, bitbox02-firmware
project: [coldcard, coldcard-mk3, lnd, bitcoin-core, mycelium-android, zap-android, simple-bitcoin-wallet, wasabi, sparrow, blockstream-green]
project: [coldcard, coldcard-mk3, lnd, bitcoin-core, mycelium-android, zap-android, simple-bitcoin-wallet, wasabi, sparrow, blockstream-green, fulcrum]
steps:
- name: Setup xvfb for video capture
run: |
Expand Down Expand Up @@ -114,6 +114,11 @@ jobs:
with:
dotnet-version: '6.0.x'

- name: Setup deps for Fulcrum SPV server
if: ${{ matrix.project == 'fulcrum' }}
run: |
sudo apt install -y openssl git build-essential pkg-config zlib1g-dev libbz2-dev libjemalloc-dev libzmq3-dev qtbase5-dev qt5-qmake
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
17 changes: 17 additions & 0 deletions fulcrum/artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

DATE=$(date +%Y-%m-%d)
TWITTER_NAME="Fulcrum"
VERSION="1.7.0"
REPO="https://github.com/cculianu/Fulcrum"
CHECKSUM_SOURCE="https://github.com/cculianu/Fulcrum/releases/tag/v${VERSION}"
PROJECT="Fulcrum"
SHA256=$(shasum -a 256 Fulcrum | cut -f 1 -d ' ')

# Note GITHUB_ environment variables are populated by Github Actions
ARTIFACT_BASEURL="https://github.com/${GITHUB_REPOSITORY}/raw"
ARTIFACT_BRANCH=${GITHUB_REF_NAME}

ENTRY_TO_APPEND="<li><a href='${REPO}/releases/tag/${VERSION}'>${DATE}</a> | <a href='${URL}' class='project-name'>${PROJECT}</a> | <a href='${REPO}/releases/tag/${VERSION}'>${VERSION}</a> | <a href='${CHECKSUM_SOURCE}'> factory ${SHA256} </a>| <a href='${ARTIFACT_BASEURL}/${ARTIFACT_BRANCH}/${PROJECT}/${PROJECT}-${VERSION}-video.webm'>video proof</a> | <a href='https://github.com/coinkite/bitcoinbinary.org/blob/main/${PROJECT}/artifacts.sh' class="bot">build bot</a></li>"

echo ${ENTRY_TO_APPEND}
17 changes: 17 additions & 0 deletions fulcrum/steps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# Pull in version numbers from artifacts.sh
eval "$(grep VERSION artifacts.sh)"

if [ ! -e fulcrum ]; then
# Checkout source and submodules
git clone --progress https://github.com/cculianu/Fulcrum.git
fi

cd Fulcrum
git checkout v${VERSION}
qmake
make -j5

# Add delay for results to be printed and recorded
sleep 10

0 comments on commit cc75179

Please sign in to comment.