File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 11set -euo pipefail
22
3- echo " ::group::Setup"
3+ echo " ::group::CLI Setup"
44
55echo " Installing flow CLI..."
66
77if [ " ${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
924else
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
1228fi
1329
14- curl -sSL https://raw.githubusercontent.com/jahvon/flow/main/scripts/install.sh | bash
15-
1630echo " Verifying flow installation..."
1731flow --version
1832
You can’t perform that action at this time.
0 commit comments