Skip to content

Commit 5629cca

Browse files
authored
ci/build: Install required protoc plugins (#3801)
* ci/build: Install required protoc plugins * ci/build: Add go bins to path * Make sure to install plugins for host arch * Pin protoc versions to be compatible with mockgen 1.6.0 * [TEMP] Create script to test build multiple times * Build 1/10 * Build 2/10 * Build 3/10 * Build 4/10 * Build 5/10 * Build 6/10 * Build 7/10 * Build 8/10 * Build 9/10 * Build 10/10 * Revert "[TEMP] Create script to test build multiple times" This reverts commit 01bd618.
1 parent c71d466 commit 5629cca

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
echo "GO_BUILD_DIR=lp-builds/" >> $GITHUB_ENV
8484
echo "PKG_CONFIG_PATH=/github/home/compiled/lib/pkgconfig" >> $GITHUB_ENV
8585
echo "LP_BUILD_DIR=livepeer-${{ matrix.target.GOOS }}-${{ matrix.target.GOARCH }}" >> $GITHUB_ENV
86+
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
8687
mkdir -p lp-builds/ releases/
8788
8889
- name: Set GPU build environment
@@ -114,6 +115,11 @@ jobs:
114115
if: steps.go.outputs.cache-hit != 'true'
115116
run: go mod download
116117

118+
- name: Install protoc plugins
119+
run: |
120+
GOARCH= GOOS= go install google.golang.org/protobuf/cmd/[email protected]
121+
GOARCH= GOOS= go install google.golang.org/grpc/cmd/[email protected]
122+
117123
- name: Install ffmpeg
118124
run: ./install_ffmpeg.sh
119125

@@ -184,6 +190,7 @@ jobs:
184190
echo "GOOS=${{ matrix.target.GOOS }}" >> $GITHUB_ENV
185191
echo "GO_BUILD_DIR=lp-builds/" >> $GITHUB_ENV
186192
echo "LP_BUILD_DIR=livepeer-${{ matrix.target.GOOS }}-${{ matrix.target.GOARCH }}" >> $GITHUB_ENV
193+
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
187194
mkdir -p lp-builds/ releases/
188195
189196
- name: Cache ffmpeg
@@ -204,6 +211,11 @@ jobs:
204211
# if: steps.go.outputs.cache-hit != 'true'
205212
run: go mod download
206213

214+
- name: Install protoc plugins
215+
run: |
216+
GOARCH= GOOS= go install google.golang.org/protobuf/cmd/[email protected]
217+
GOARCH= GOOS= go install google.golang.org/grpc/cmd/[email protected]
218+
207219
- name: Install ffmpeg
208220
if: steps.cache-ffmpeg.outputs.cache-hit != 'true'
209221
run: ./install_ffmpeg.sh

0 commit comments

Comments
 (0)