add 27.1 and 28.0, use alpine:3.20, use actions/checkout@v4 #177
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build bitcoind on push, or PR to master | |
env: | |
APP: bitcoind | |
on: | |
push: | |
branches: [ 'master' ] | |
pull_request: | |
branches: [ 'master' ] | |
jobs: | |
build: | |
name: Build bitcoind | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
subver: | |
- '24.0' | |
- '25.1' | |
- '26.1' | |
- '27.0' | |
- '27.1' | |
- '28.0' | |
arch: | |
- amd64 | |
- arm32v7 | |
- arm64v8 | |
env: | |
QEMU_VERSION: v5.0.0 | |
DOCKER_BUILDKIT: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 "${{ matrix.subver }}/" | |
--build-arg "ARCH=${{ matrix.arch }}" | |
--tag "$APP" | |
- name: Show built image details | |
run: docker images "$APP" | |
- name: Run sanity checks | |
env: | |
DIR: /usr/local/bin | |
MINOR: ${{ matrix.subver }} | |
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 | |
run bitcoin-wallet --help | head -n 1 | |
run uname -a | |
run cat /etc/os-release | |
run sha256sum "$DIR/bitcoind" "$DIR/bitcoin-cli" |