Skip to content

Commit c101f17

Browse files
committed
trice build & install steps added
1 parent 9e17252 commit c101f17

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/trice_lib_reusable.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,33 @@ jobs:
8080
llvm \
8181
lld
8282
83+
- name: Setup Go
84+
uses: actions/setup-go@v5
85+
with:
86+
go-version: "stable"
87+
cache: true
88+
89+
- name: Build and install trice CLI
90+
shell: bash
91+
run: |
92+
set -euxo pipefail
93+
94+
# Build the trice CLI from repository sources and put it on PATH.
95+
#
96+
# NOTE:
97+
# - Adjust the package path (./cmd/trice) to match your repo layout.
98+
# - If your main package is elsewhere, change accordingly.
99+
100+
go version
101+
go env GOPATH
102+
103+
# Option A (most common): main package under ./cmd/trice
104+
go build -o /usr/local/bin/trice ./cmd/trice
105+
106+
# Verify availability
107+
command -v trice
108+
trice --help || true
109+
83110
- name: Print tool versions
84111
shell: bash
85112
run: |

0 commit comments

Comments
 (0)