Skip to content

Commit

Permalink
Test v0.20.1 before official release (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeDamian authored Aug 3, 2020
1 parent d21e436 commit 5f2c73a
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 1 deletion.
73 changes: 73 additions & 0 deletions .github/workflows/single-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Test build bitcoind on push to vX.Z-test branch

env:
APP: bitcoind

on:
push:
branches: [ 'v[0-9].[0-9]*-test' ]

jobs:
build:
name: Build bitcoind
runs-on: ubuntu-18.04

strategy:
fail-fast: false
matrix:
arch:
- amd64
- arm32v7
- arm64v8

env:
QEMU_VERSION: v5.0.0
DOCKER_BUILDKIT: 1

steps:
- uses: actions/checkout@v2

- name: Detect version
run: echo ::set-env name=MINOR::"$(echo "$GITHUB_REF" | sed -E 's|refs/heads/v(.*)-test|\1|g')"

- name: Register self-compiled qemu
if: matrix.arch != 'amd64'
run: docker run --rm --privileged "meedamian/simple-qemu:$QEMU_VERSION-${{ matrix.arch }}" -p yes

- name: Build ${{ env.APP }}
run: >
docker build "$MINOR/"
--build-arg "ARCH=${{ matrix.arch }}"
--build-arg "SOURCE=git"
--tag "$APP"
- name: Show built image details
run: docker images "$APP"

- name: Run sanity checks
env:
DIR: /usr/local/bin
run: |
run() {
ENTRYPOINT="${1:-$APP}"; shift
ARGS=${*:-"--version"}
printf "\n$ %s %s\n" "$ENTRYPOINT" "$ARGS"
docker run --rm --entrypoint "$ENTRYPOINT" "$APP" $ARGS
}
docker inspect "$APP" | jq '.'
printf "\n"
run bitcoind | head -n 1
run bitcoin-cli
run bitcoin-tx --help | head -n 1
# If version higher, or equal than v0.18.0, also run `bitcoin-wallet` binary
if [ "${MINOR#0.}" -ge "18" ]; then
run bitcoin-wallet --help | head -n 1
fi
run uname -a
run cat /etc/os-release
run sha256sum "$DIR/bitcoind" "$DIR/bitcoin-cli"
4 changes: 3 additions & 1 deletion 0.20/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# VERSION of Bitcoin Core to be build
# NOTE: Unlike our other images this one is NOT prefixed with `v`,
# as many things (like download URLs) use this form instead.
ARG VERSION=0.20.0
ARG VERSION=0.20.1



# CPU architecture to build binaries for
ARG ARCH
Expand Down

0 comments on commit 5f2c73a

Please sign in to comment.