1
0
Fork 0
forked from lthn/blockchain

Add QEMU setup to Docker workflow and update Dockerfile deps

Introduces the docker/setup-qemu-action step in the GitHub Actions workflow to support multi-architecture builds. Also updates the lthn-chain Dockerfile to include autotools-dev and checkinstall in the build dependencies.
This commit is contained in:
Snider 2025-09-27 22:12:29 +01:00
parent a6886700ae
commit 73131d0053
2 changed files with 13 additions and 7 deletions

View file

@ -44,15 +44,18 @@ jobs:
fetch-depth: 0
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Build ${{ matrix.platform }}
id: docker_build
continue-on-error: true
@ -81,15 +84,18 @@ jobs:
fetch-depth: 0
submodules: recursive
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Build
id: docker_final
uses: docker/build-push-action@v6

View file

@ -21,7 +21,7 @@ ENV BUILD_TARGET=${BUILD_TARGET}
RUN apt update && apt -y upgrade
RUN apt install -y build-essential pkgconf \
curl ca-certificates bison \
curl ca-certificates bison autotools-dev checkinstall \
g++ llvm clang lld cmake \
git python3 python3-pip xz-utils gperf