Skip to content

Commit

Permalink
fix: flow check arch
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsm-dev committed Jan 7, 2022
1 parent 93ead0c commit 0af903a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,13 @@ RUN set -ex && \
libstdc++ gcc g++ automake libtool libuv-dev \
autoconf linux-headers openssl-dev hwloc-dev
WORKDIR /tmp/install
RUN /bin/sh -c 'set -ex && \
ARCH=`uname -m` && \
if [ "$ARCH" == "arm" ]; then \
echo "arm" && \
export XMRIG_BUILD_ARGS="${XMRIG_BUILD_ARGS -DARM_TARGET=7 -DCMAKE_SYSTEM_PROCESSOR=arm}"; \
fi'
RUN /bin/sh -c 'set -ex && \
ARCH=`uname -m` && \
if [ "$ARCH" == "aarch64" ]; then \
echo "aarch64" && \
export XMRIG_BUILD_ARGS="${XMRIG_BUILD_ARGS -DARM_TARGET=7 -DCMAKE_SYSTEM_PROCESSOR=arm}"; \
fi'
RUN set -ex; \
git clone --single-branch --depth 1 --branch=$XMRIG_VERSION $XMRIG_URL && \
mkdir ./xmrig/build && \
sed -i "s/kDefaultDonateLevel = 1;/kDefaultDonateLevel = 0;/g" ./xmrig/src/donate.h && \
sed -i "s/kMinimumDonateLevel = 1;/kMinimumDonateLevel = 0;/g" ./xmrig/src/donate.h && \
ARCH=`uname -m` && \
if [ "$ARCH" == "aarch64" ]; then echo "aarch64" && export XMRIG_BUILD_ARGS="${XMRIG_BUILD_ARGS -DARM_TARGET=7 -DCMAKE_SYSTEM_PROCESSOR=arm}"; fi && \
cd xmrig/scripts && ./build_deps.sh && cd ../build && \
cmake .. $XMRIG_BUILD_ARGS && \
make -j$(nproc)
Expand Down

0 comments on commit 0af903a

Please sign in to comment.