Skip to content

Commit

Permalink
test: try building for arm platfform only
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurshsmith committed Jul 1, 2024
1 parent 8995176 commit e2dafb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,10 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
platforms: linux/arm64
file: docker/fuel-core-nats.Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: |
type=registry,ref=ghcr.io/fuellabs/fuel-core-nats-build-cache:linux-amd64
type=registry,ref=ghcr.io/fuellabs/fuel-core-nats-build-cache:linux-arm64
cache-to: |-
type=registry,ref=ghcr.io/fuellabs/fuel-core-nats-build-cache:linux-amd64,mode=max
type=registry,ref=ghcr.io/fuellabs/fuel-core-nats-build-cache:linux-arm64,mode=max
cache-from: type=registry,ref=ghcr.io/fuellabs/fuel-core-nats-cache:latest
cache-to: type=registry,ref=ghcr.io/fuellabs/fuel-core-nats-cache:latest,mode=max
4 changes: 4 additions & 0 deletions docker/fuel-core-nats.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ FROM --platform=$BUILDPLATFORM rust:1.75.0 AS chef

ARG TARGETPLATFORM
RUN cargo install cargo-chef && rustup target add wasm32-unknown-unknown

# Add the target platform dynamically
RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then rustup target add aarch64-unknown-linux-gnu; fi

WORKDIR /build/

COPY --from=xx / /
Expand Down

0 comments on commit e2dafb7

Please sign in to comment.