Skip to content

Commit

Permalink
Parameterize features
Browse files Browse the repository at this point in the history
  • Loading branch information
danyalprout committed Jun 12, 2024
1 parent 33088bc commit 4ee230c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ jobs:
platforms: linux/amd64,linux/arm64
reth:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: linux/amd64
features: jemalloc,asm-keccak,optimism
- arch: linux/arm64
features: jemalloc,optimism
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -78,4 +85,6 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
build-args: |
FEATURES=${{ matrix.features }}
platforms: ${{ matrix.arch }}
8 changes: 7 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [ linux/amd64, linux/arm64 ]
include:
- arch: linux/amd64
features: jemalloc,asm-keccak,optimism
- arch: linux/arm64
features: jemalloc,optimism
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -41,4 +45,6 @@ jobs:
context: .
file: Dockerfile.reth
push: false
build-args: |
FEATURES=${{ matrix.features }}
platforms: ${{ matrix.arch }}
2 changes: 2 additions & 0 deletions Dockerfile.reth
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ RUN cd op-node && \

FROM rust AS reth

ARG FEATURES=jemalloc,asm-keccak,optimism

WORKDIR /app

RUN apt-get update && apt-get -y upgrade && apt-get install -y git libclang-dev pkg-config curl build-essential
Expand Down

0 comments on commit 4ee230c

Please sign in to comment.