Skip to content

Commit

Permalink
Merge pull request algorand#6146 from Algo-devops-service/relstable3.…
Browse files Browse the repository at this point in the history
…26.0-remerge
  • Loading branch information
algojohnlee authored Oct 2, 2024
2 parents 8b6c443 + 72e3b0e commit cb4de53
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
2 changes: 1 addition & 1 deletion config/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const VersionMajor = 3

// VersionMinor is the Minor semantic version number (x.#.z) - changed when backwards-compatible features are introduced.
// Not enforced until after initial public release (x > 0).
const VersionMinor = 26
const VersionMinor = 27

// Version is the type holding our full version information.
type Version struct {
Expand Down
1 change: 1 addition & 0 deletions installer/rpm/algorand-devtools/algorand-devtools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Requires: @REQUIRED_ALGORAND_PKG@ >= @VER@

%define SRCDIR go-algorand-rpmbuild
%define _buildshell /bin/bash
%define __os_install_post %{?__brp-compress}

%description
This package provides development tools for the Algorand blockchain.
Expand Down
1 change: 1 addition & 0 deletions installer/rpm/algorand/algorand.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Requires(pre): shadow-utils

%define SRCDIR go-algorand-rpmbuild
%define _buildshell /bin/bash
%define __os_install_post %{?__brp-compress}

%description
This package provides an implementation of the Algorand protocol.
Expand Down
6 changes: 5 additions & 1 deletion scripts/build_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,14 @@ for var in "${VARIATION_ARRAY[@]}"; do

pushd ${PLATFORM_ROOT}
tar --exclude=tools -zcf ${PKG_ROOT}/node_${CHANNEL}_${PKG_NAME}_${FULLVERSION}.tar.gz * >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Error creating node tar file for package ${PLATFORM}. Aborting..."
exit 1
fi
cd bin
tar -zcf ${PKG_ROOT}/install_${CHANNEL}_${PKG_NAME}_${FULLVERSION}.tar.gz updater update.sh >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Error creating tar file for package ${PLATFORM}. Aborting..."
echo "Error creating install tar file for package ${PLATFORM}. Aborting..."
exit 1
fi

Expand Down
29 changes: 14 additions & 15 deletions scripts/release/mule/sign/sign.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env bash
# shellcheck disable=2035,2129

# TODO: This needs to be reworked a bit to support Darwin.

set -exo pipefail
shopt -s nullglob

Expand All @@ -14,8 +12,8 @@ CHANNEL=${CHANNEL:-$(./scripts/release/mule/common/get_channel.sh "$NETWORK")}
VERSION=${VERSION:-$(./scripts/compute_build_number.sh -f)}
PKG_DIR="./tmp/node_pkgs"
[email protected]
OS_TYPE=$(./scripts/release/mule/common/ostype.sh)
ARCHS=(amd64 arm64)
OS_TYPES=(linux darwin)
ARCHS=(amd64 arm64 universal)
ARCH_BITS=(x86_64 aarch64)
# Note that we don't want to use $GNUPGHOME here because that is a documented env var for the gnupg
# project and if it's set in the environment mule will automatically pick it up, which could have
Expand Down Expand Up @@ -47,17 +45,19 @@ popd
if [ -n "$S3_SOURCE" ]
then
i=0
for arch in "${ARCHS[@]}"; do
arch_bit="${ARCH_BITS[$i]}"
(
for os in "${OS_TYPES[@]}"; do
for arch in "${ARCHS[@]}"; do
mkdir -p "$PKG_DIR/$OS_TYPE/$arch"
cd "$PKG_DIR"
# Note the underscore after ${arch}!
# Recall that rpm packages have the arch bit in the filenames (i.e., "x86_64" rather than "amd64").
# Also, the order of the includes/excludes is important!
aws s3 cp --recursive --exclude "*" --include "*${arch}_*" --include "*$arch_bit.rpm" --exclude "*.sig" --exclude "*.asc" --exclude "*.asc.gz" "s3://$S3_SOURCE/$CHANNEL/$VERSION" .
)
i=$((i + 1))
arch_bit="${ARCH_BITS[$i]}"
(
cd "$PKG_DIR"
# Note the underscore after ${arch}!
# Recall that rpm packages have the arch bit in the filenames (i.e., "x86_64" rather than "amd64").
# Also, the order of the includes/excludes is important!
aws s3 cp --recursive --exclude "*" --include "*${arch}_*" --include "*$arch_bit.rpm" --exclude "*.sig" --exclude "*.asc" --exclude "*.asc.gz" "s3://$S3_SOURCE/$CHANNEL/$VERSION" .
)
i=$((i + 1))
done
done
fi

Expand All @@ -69,7 +69,6 @@ cd "$PKG_DIR"
# Grab the directories directly underneath (max-depth 1) ./tmp/node_pkgs/ into a space-delimited string.
# This will help us target `linux`, `darwin` and (possibly) `windows` build assets.
# Note the surrounding parens turns the string created by `find` into an array.
OS_TYPES=($(find . -mindepth 1 -maxdepth 1 -type d -printf '%f\n'))
for os in "${OS_TYPES[@]}"; do
for arch in "${ARCHS[@]}"; do
if [ -d "$os/$arch" ]
Expand Down

0 comments on commit cb4de53

Please sign in to comment.