From ec9ac0003b4accd169af073e41f7ce9a26bf8275 Mon Sep 17 00:00:00 2001 From: le0m Date: Tue, 30 Apr 2024 14:22:04 +0200 Subject: [PATCH] feat: build for RISC-V architecture --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b87471c..bdef08e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,9 +42,19 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Set up QEMU + run: | + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + driver-opts: network=host + - name: Build image for testing uses: docker/build-push-action@v5 with: + platforms: linux/amd64,linux/arm64,linux/riscv64 cache-from: type=registry,ref=chialab/php:${{ matrix.version }}${{ matrix.flavor }} cache-to: type=inline context: .