Skip to content

Commit d970d2d

Browse files
committed
Install protoc in release build
1 parent bb17fe5 commit d970d2d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/release.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,25 @@ jobs:
6565
restore-keys: |
6666
js-${{ runner.os }}-
6767
68+
- name: Install protoc-gen-go
69+
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
70+
- name: Install protoc-gen-go-drpc
71+
run: go install storj.io/drpc/cmd/protoc-gen-go-drpc@v0.0.26
72+
- name: Install goimports
73+
run: go install golang.org/x/tools/cmd/goimports@latest
74+
75+
- name: Install Protoc
76+
run: |
77+
# protoc must be in lockstep with our dogfood Dockerfile
78+
# or the version in the comments will differ.
79+
set -x
80+
cd dogfood
81+
DOCKER_BUILDKIT=1 docker build . --target proto -t protoc
82+
protoc_path=/usr/local/bin/protoc
83+
docker run --rm --entrypoint cat protoc /tmp/bin/protoc > $protoc_path
84+
chmod +x $protoc_path
85+
protoc --version
86+
6887
- name: Install nfpm
6988
run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.16.0
7089

@@ -78,6 +97,7 @@ jobs:
7897
7998
version="$(./scripts/version.sh)"
8099
make -j \
100+
-W coderd/database/querier.go \
81101
build/coder_"$version"_linux_{amd64,armv7,arm64}.{tar.gz,apk,deb,rpm} \
82102
build/coder_"$version"_windows_{amd64,arm64}.zip \
83103
@@ -165,6 +185,25 @@ jobs:
165185
restore-keys: |
166186
js-${{ runner.os }}-
167187
188+
- name: Install protoc-gen-go
189+
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
190+
- name: Install protoc-gen-go-drpc
191+
run: go install storj.io/drpc/cmd/protoc-gen-go-drpc@v0.0.26
192+
- name: Install goimports
193+
run: go install golang.org/x/tools/cmd/goimports@latest
194+
195+
- name: Install Protoc
196+
run: |
197+
# protoc must be in lockstep with our dogfood Dockerfile
198+
# or the version in the comments will differ.
199+
set -x
200+
cd dogfood
201+
DOCKER_BUILDKIT=1 docker build . --target proto -t protoc
202+
protoc_path=/usr/local/bin/protoc
203+
docker run --rm --entrypoint cat protoc /tmp/bin/protoc > $protoc_path
204+
chmod +x $protoc_path
205+
protoc --version
206+
168207
- name: Install dependencies
169208
run: |
170209
set -euo pipefail

0 commit comments

Comments
 (0)