Skip to content

Commit da0d259

Browse files
committed
add main builds
1 parent 9231f01 commit da0d259

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

scripts/install-flow.sh

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
11
set -euo pipefail
22

3-
echo "::group::Setup"
3+
echo "::group::CLI Setup"
44

55
echo "Installing flow CLI..."
66

77
if [ "${FLOW_VERSION:-latest}" = "latest" ]; then
88
echo "Installing latest version of flow..."
9+
curl -sSL https://raw.githubusercontent.com/jahvon/flow/main/scripts/install.sh | bash
10+
elif [ "${FLOW_VERSION}" = "main" ]; then
11+
echo "Building flow from main branch..."
12+
13+
if ! command -v go &> /dev/null; then
14+
echo "Go required for main builds"
15+
exit 1
16+
fi
17+
18+
git clone https://github.com/jahvon/flow.git /tmp/flow
19+
cd /tmp/flow
20+
go build -o flow .
21+
sudo mv flow /usr/local/bin/flow
22+
cd -
23+
rm -rf /tmp/flow
924
else
1025
echo "Installing flow version: $FLOW_VERSION"
1126
export VERSION="$FLOW_VERSION"
27+
curl -sSL https://raw.githubusercontent.com/jahvon/flow/main/scripts/install.sh | bash
1228
fi
1329

14-
curl -sSL https://raw.githubusercontent.com/jahvon/flow/main/scripts/install.sh | bash
15-
1630
echo "Verifying flow installation..."
1731
flow --version
1832

0 commit comments

Comments
 (0)