Skip to content

Commit 981bb79

Browse files
Fix installprotoc input (#11)
* Install unzip on apt-get platforms * Move well known protoc types into /usr/local/include
1 parent cd1df98 commit 981bb79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
echo "cache key: ${{ runner.os }}-${{matrix.linux}}-spm-${{ hashFiles('Package.resolved') }}"
141141
- name: Install apt-get Dependencies
142142
if: matrix.linux != 'centos8' && matrix.linux != 'amazonlinux2' && (inputs.aptgetdependencies != '' || inputs.installgrpcurl || inputs.installprotoc)
143-
run: apt-get update && apt-get install -y --no-install-recommends wget ${{ inputs.aptgetdependencies }}
143+
run: apt-get update && apt-get install -y --no-install-recommends wget unzip ${{ inputs.aptgetdependencies }}
144144
- name: Install yum Dependencies
145145
if: matrix.linux == 'amazonlinux2' && (inputs.yumdependencies != '' || inputs.installgrpcurl || inputs.installprotoc)
146146
run: yum update -y && yum install -y wget unzip ${{ inputs.yumdependencies }}
@@ -158,7 +158,8 @@ jobs:
158158
run: |
159159
wget 'https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip'
160160
unzip protoc-3.19.4-linux-x86_64.zip
161-
mv bin/protoc /usr/local/bin
161+
mv bin /usr/local
162+
mv include /usr/local
162163
- uses: actions/cache@v2
163164
with:
164165
path: .build

0 commit comments

Comments
 (0)