Skip to content

Commit

Permalink
compile for arm64
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed Feb 27, 2023
1 parent 73676a3 commit c8268ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
- name: Build and push Docker image
id: build-and-push
uses: docker/[email protected]
with:
context: .
#platforms: linux/amd64,linux/arm64
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
FROM docker.io/library/fedora:37 as build

ARG TAG=v23.01
# Pick an arch that has at least sse 4.2 but does not require newer avx
# See https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
ARG ARCH=x86-64-v2

RUN dnf install -y git rpm-build diffutils procps-ng pip python3-grpcio python3-grpcio-tools && dnf clean all

Expand All @@ -16,7 +13,10 @@ WORKDIR /root/spdk
RUN git submodule update --init --depth 1 && \
./scripts/pkgdep.sh --rdma

RUN DEPS="no" LDFLAGS=" " \
# Pick an arch that has at least sse 4.2 but does not require newer avx
# See https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
RUN if [ "$(uname -m)" = "x86_64" ]; then export ARCH="x86-64-v2"; else export ARCH="native"; fi && \
DEPS="no" LDFLAGS=" " \
./rpmbuild/rpm.sh --target-arch=${ARCH} --without-uring --with-crypto \
--without-fio --with-raid5f --with-vhost --without-pmdk --without-rbd \
--with-rdma --without-shared --with-iscsi-initiator --without-vtune --with-vfio-user
Expand Down

0 comments on commit c8268ad

Please sign in to comment.