Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using hashes of 3rd party software, rather than tags #146

Merged
merged 1 commit into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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