Skip to content

Commit

Permalink
Using hashes of 3rd party software, rather than tags (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-xmr committed Nov 23, 2022
1 parent 6782cb0 commit 1bab693
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion util/build-monero.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ REPO=monero
DIR=build
TARGETS="daemon"
AUTO_INSTALL_DEPS=false
HASH_LATEST_RELEASE=66184f30859796f3c7c22f9497e41b15b5a4a7c9 # v0.18.1.2

DEPS="build-essential cmake pkg-config libssl-dev libzmq3-dev libunbound-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev libexpat1-dev libpgm-dev libhidapi-dev libusb-1.0-0-dev libprotobuf-dev protobuf-compiler libudev-dev libboost-chrono-dev libboost-date-time-dev libboost-filesystem-dev libboost-locale-dev libboost-program-options-dev libboost-regex-dev libboost-serialization-dev libboost-system-dev libboost-thread-dev python3 ccache"

Expand Down Expand Up @@ -40,7 +41,8 @@ if [ ! -d $REPO ]; then
git clone --recursive https://github.com/monero-project/$REPO.git
fi
cd $REPO
git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) # Checkout the latest tag (master is risky)
#git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) # Checkout the latest tag (master is risky)
git checkout $HASH_LATEST_RELEASE
git submodule init && git submodule update --remote; git submodule sync && git submodule update
mkdir -p $DIR && cd $DIR
# Mix some ghetto tricks to minimize the build size:
Expand Down
6 changes: 4 additions & 2 deletions util/build-p2pool.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#!/bin/bash -e

VER=2.5
#VER=2.5
# https://github.com/SChernykh/p2pool/releases
REPO=p2pool
DIR=build
HASH_LATEST_TAG=6cf1b13500795260fd9b98de393ecd19f5aabd5d # 2.5

mkdir -p $DIR && cd $DIR
if [ ! -d $REPO ]; then
git clone --recursive https://github.com/SChernykh/$REPO.git
fi
cd $REPO
git checkout v${VER}
#git checkout v${VER}
git checkout $HASH_LATEST_TAG
mkdir -p $DIR && cd $DIR
cmake ..
make -j`nproc`
Expand Down
7 changes: 4 additions & 3 deletions util/build-xmrig.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash -e

VER=6.18.1
#VER=6.18.1
#https://github.com/xmrig/xmrig/releases
REPO=xmrig
DIR=build

HASH_LATEST_TAG=28e81bd7c09c88f8dfe5ab5fb1fbd62f3bca1f8b # v6.18.1

DIR_THIS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

Expand All @@ -16,7 +16,8 @@ fi

git clone --recursive https://github.com/$REPO/$REPO.git
cd $REPO
git checkout v${VER}
#git checkout v${VER}
git checkout $HASH_LATEST_TAG
mkdir -p $DIR && cd $DIR
cmake .. -G "CodeBlocks - Unix Makefiles"
make -j$(nproc)
Expand Down

0 comments on commit 1bab693

Please sign in to comment.