Skip to content

Refactor workflows #239

Refactor workflows

Refactor workflows #239

Workflow file for this run

name: Pull Request
on:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
client: [geth, reth, nethermind]
arch:
- platform: linux/amd64
runs-on: ubuntu-24.04
- platform: linux/arm64
runs-on: ubuntu-24.04-arm
include:
- client: reth
arch: linux/amd64
features: jemalloc,asm-keccak,optimism
- client: reth
arch: linux/arm64
features: jemalloc,optimism
runs-on: ${{ matrix.arch.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Prepare
run: |
PLATFORM_PAIR=${${{ matrix.arch.platform }}//\//-}
echo "IMAGE_NAME=${{ matrix.client }}-$PLATFORM_PAIR" >> $GITHUB_ENV
- name: Build the Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.client }}/Dockerfile
push: false
platforms: ${{ matrix.arch }}
outputs: type=docker,dest=${{ runner.temp }}/${{ env.IMAGE_NAME }}.tar
build-args: |
FEATURES=${{ matrix.features }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.IMAGE_NAME }}
path: ${{ runner.temp }}/${{ env.IMAGE_NAME }}.tar