Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: skip ARM build on PRs #2231

Merged
merged 6 commits into from
Oct 29, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 23 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ concurrency:
env:
RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"'
RUST_LOG: info,libp2p=off,node=error
DOCKER_PLATFORMS: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm64' }}

jobs:
build:
Expand Down Expand Up @@ -86,6 +87,7 @@ jobs:
target/release/dev-rollup

build-arm:
if: github.event_name != 'pull_request'
runs-on: buildjet-16vcpu-ubuntu-2204-arm
steps:
- name: Fix submodule permissions check
Expand Down Expand Up @@ -142,7 +144,9 @@ jobs:

build-dockers:
runs-on: ubuntu-latest
needs: [build, build-arm]
needs: [build]
# run if `build` succeeded
if: ${{ always() && !cancelled() && needs.build.result == 'success' }}
outputs:
sequencer-tag: ${{ steps.sequencer.outputs.tags }}
cdn-broker-tag: ${{ steps.cdn-broker.outputs.tags }}
Expand Down Expand Up @@ -174,6 +178,7 @@ jobs:
path: target/amd64/release

- name: Download executables ARM
if: github.event_name != 'pull_request'
uses: actions/download-artifact@v4
with:
name: aarch64-unknown-linux-gnu-services
Expand Down Expand Up @@ -298,7 +303,7 @@ jobs:
with:
context: ./
file: ./docker/sequencer.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.sequencer.outputs.tags }}
labels: ${{ steps.sequencer.outputs.labels }}
Expand All @@ -308,7 +313,7 @@ jobs:
with:
context: ./
file: ./docker/cdn-broker.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.cdn-broker.outputs.tags }}
labels: ${{ steps.cdn-broker.outputs.labels }}
Expand All @@ -318,7 +323,7 @@ jobs:
with:
context: ./
file: ./docker/cdn-marshal.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.cdn-marshal.outputs.tags }}
labels: ${{ steps.cdn-marshal.outputs.labels }}
Expand All @@ -328,7 +333,7 @@ jobs:
with:
context: ./
file: ./docker/cdn-whitelist.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.cdn-whitelist.outputs.tags }}
labels: ${{ steps.cdn-whitelist.outputs.labels }}
Expand All @@ -338,7 +343,7 @@ jobs:
with:
context: ./
file: ./docker/state-relay-server.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.state-relay-server.outputs.tags }}
labels: ${{ steps.state-relay-server.outputs.labels }}
Expand All @@ -348,7 +353,7 @@ jobs:
with:
context: ./
file: ./docker/prover-service.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prover-service.outputs.tags }}
labels: ${{ steps.prover-service.outputs.labels }}
Expand All @@ -358,7 +363,7 @@ jobs:
with:
context: ./
file: ./docker/orchestrator.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.orchestrator.outputs.tags }}
labels: ${{ steps.orchestrator.outputs.labels }}
Expand All @@ -368,7 +373,7 @@ jobs:
with:
context: ./
file: ./docker/submit-transactions.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.submit-transactions.outputs.tags }}
labels: ${{ steps.submit-transactions.outputs.labels }}
Expand All @@ -378,7 +383,7 @@ jobs:
with:
context: ./
file: ./docker/deploy.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.deploy.outputs.tags }}
labels: ${{ steps.deploy.outputs.labels }}
Expand All @@ -388,7 +393,7 @@ jobs:
with:
context: ./
file: ./docker/permissionless-builder.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.builder.outputs.tags }}
labels: ${{ steps.builder.outputs.labels }}
Expand All @@ -398,7 +403,7 @@ jobs:
with:
context: ./
file: ./docker/nasty-client.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.nasty-client.outputs.tags }}
labels: ${{ steps.nasty-client.outputs.labels }}
Expand All @@ -408,7 +413,7 @@ jobs:
with:
context: ./
file: ./docker/espresso-dev-node.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.espresso-dev-node.outputs.tags }}
labels: ${{ steps.espresso-dev-node.outputs.labels }}
Expand All @@ -417,7 +422,7 @@ jobs:
with:
context: ./
file: ./docker/espresso-bridge.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.bridge.outputs.tags }}
labels: ${{ steps.bridge.outputs.labels }}
Expand All @@ -427,7 +432,7 @@ jobs:
with:
context: ./
file: ./docker/marketplace-solver.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.marketplace-solver.outputs.tags }}
labels: ${{ steps.marketplace-solver.outputs.labels }}
Expand All @@ -437,7 +442,7 @@ jobs:
with:
context: ./
file: ./docker/marketplace-builder.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.marketplace-builder.outputs.tags }}
labels: ${{ steps.marketplace-builder.outputs.labels }}
Expand All @@ -447,7 +452,7 @@ jobs:
with:
context: ./
file: ./docker/node-validator.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.node-validator.outputs.tags }}
labels: ${{ steps.node-validator.outputs.labels }}
Expand All @@ -457,7 +462,7 @@ jobs:
with:
context: ./
file: ./docker/dev-rollup.Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.dev-rollup.outputs.tags }}
labels: ${{ steps.dev-rollup.outputs.labels }}
Expand Down
Loading