File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 52
52
53
53
with :
54
54
context : .
55
- # platforms: linux/amd64,linux/arm64
56
- platforms : linux/amd64
55
+ platforms : linux/amd64,linux/arm64
57
56
push : ${{ github.event_name != 'pull_request' }}
58
57
tags : ${{ steps.meta.outputs.tags }}
59
58
labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 4
4
FROM docker.io/library/fedora:37 as build
5
5
6
6
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
10
7
11
8
WORKDIR /root
12
9
RUN dnf install -y git rpm-build diffutils procps-ng pip python3-grpcio python3-grpcio-tools && dnf clean all
@@ -15,8 +12,16 @@ RUN dnf install -y git rpm-build diffutils procps-ng pip python3-grpcio python3-
15
12
RUN git clone https://github.com/spdk/spdk --branch ${TAG} --depth 1 && \
16
13
cd spdk && git submodule update --init --depth 1 && scripts/pkgdep.sh --rdma
17
14
15
+ # Pick an arch that has at least sse 4.2 but does not require newer avx
16
+ # See https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
17
+
18
18
# hadolint ignore=DL3003
19
- RUN cd spdk && DEPS="no" LDFLAGS=" " ./rpmbuild/rpm.sh --target-arch=${ARCH} --without-uring --with-crypto \
19
+ RUN if [ "$(uname -m)" = "aarch64" ]; then \
20
+ ARCH="generic" ; \
21
+ elif [ "$(uname -m)" = "x86_64" ]; then \
22
+ ARCH="x86-64-v2" ; \
23
+ fi; \
24
+ cd spdk && DEPS="no" LDFLAGS=" " ./rpmbuild/rpm.sh --target-arch=${ARCH} --without-uring --with-crypto \
20
25
--without-fio --with-raid5f --with-vhost --without-pmdk --without-rbd \
21
26
--with-rdma --without-shared --with-iscsi-initiator --without-vtune --with-vfio-user
22
27
You can’t perform that action at this time.
0 commit comments