Skip to content

Commit c3efd32

Browse files
committed
compile for arm64
Signed-off-by: Boris Glimcher <[email protected]>
1 parent 73676a3 commit c3efd32

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
images: |
4848
${{ github.repository }}
4949
ghcr.io/${{ github.repository }}
50+
5051
- name: Build and push Docker image
5152
id: build-and-push
5253
uses: docker/[email protected]
5354
with:
5455
context: .
55-
#platforms: linux/amd64,linux/arm64
56-
platforms: linux/amd64
56+
platforms: linux/amd64,linux/arm64
5757
push: ${{ github.event_name != 'pull_request' }}
5858
tags: ${{ steps.meta.outputs.tags }}
5959
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
FROM docker.io/library/fedora:37 as build
55

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

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

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

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

0 commit comments

Comments
 (0)