You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: action.yml
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ inputs:
48
48
required: false
49
49
default: 'latest'
50
50
build_from_source:
51
-
description: 'Build holon from source before running (default: false, download from releases). Requires Go toolchain - add "actions/setup-go@v5" step before this action when enabled.'
51
+
description: 'Build holon from source before running (default: false, download from releases). When enabled, this action will set up Go automatically.'
52
52
required: false
53
53
default: 'false'
54
54
holon_repository:
@@ -112,16 +112,18 @@ runs:
112
112
repository: ${{ inputs.holon_repository }}
113
113
path: holon-source
114
114
115
+
- name: Setup Go (for building)
116
+
if: inputs.build_from_source == 'true'
117
+
uses: actions/setup-go@v5
118
+
with:
119
+
go-version-file: holon-source/go.mod
120
+
cache: true
121
+
cache-dependency-path: holon-source/go.sum
122
+
115
123
- name: Build from source (if enabled)
116
124
if: inputs.build_from_source == 'true'
117
125
shell: bash
118
126
run: |
119
-
# Setup Go if needed
120
-
if ! command -v go &> /dev/null; then
121
-
echo "Error: Go not found. Please add 'actions/setup-go@v5' before this action when build_from_source is true."
0 commit comments