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:
4747 images : |
4848 ${{ github.repository }}
4949 ghcr.io/${{ github.repository }}
50+
5051 - name : Build and push Docker image
5152 id : build-and-push
52535354 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 }}
Original file line number Diff line number Diff line change 44FROM docker.io/library/fedora:37 as build
55
66ARG 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
118RUN 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
1613RUN 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
You can’t perform that action at this time.
0 commit comments