File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ jobs:
47
47
images : |
48
48
${{ github.repository }}
49
49
ghcr.io/${{ github.repository }}
50
+
50
51
- name : Build and push Docker image
51
52
id : build-and-push
52
53
53
54
with :
54
55
context : .
55
- # platforms: linux/amd64,linux/arm64
56
- platforms : linux/amd64
56
+ platforms : linux/amd64,linux/arm64
57
57
push : ${{ github.event_name != 'pull_request' }}
58
58
tags : ${{ steps.meta.outputs.tags }}
59
59
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
RUN dnf install -y git rpm-build diffutils procps-ng pip python3-grpcio python3-grpcio-tools && dnf clean all
12
9
@@ -16,7 +13,10 @@ WORKDIR /root/spdk
16
13
RUN git submodule update --init --depth 1 && \
17
14
./scripts/pkgdep.sh --rdma
18
15
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=" " \
20
20
./rpmbuild/rpm.sh --target-arch=${ARCH} --without-uring --with-crypto \
21
21
--without-fio --with-raid5f --with-vhost --without-pmdk --without-rbd \
22
22
--with-rdma --without-shared --with-iscsi-initiator --without-vtune --with-vfio-user
You can’t perform that action at this time.
0 commit comments