Skip to content

Commit

Permalink
Fix installprotoc input (#11)
Browse files Browse the repository at this point in the history
* Install unzip on apt-get platforms

* Move well known protoc types into /usr/local/include
  • Loading branch information
Supereg authored Feb 8, 2022
1 parent cd1df98 commit 981bb79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
echo "cache key: ${{ runner.os }}-${{matrix.linux}}-spm-${{ hashFiles('Package.resolved') }}"
- name: Install apt-get Dependencies
if: matrix.linux != 'centos8' && matrix.linux != 'amazonlinux2' && (inputs.aptgetdependencies != '' || inputs.installgrpcurl || inputs.installprotoc)
run: apt-get update && apt-get install -y --no-install-recommends wget ${{ inputs.aptgetdependencies }}
run: apt-get update && apt-get install -y --no-install-recommends wget unzip ${{ inputs.aptgetdependencies }}
- name: Install yum Dependencies
if: matrix.linux == 'amazonlinux2' && (inputs.yumdependencies != '' || inputs.installgrpcurl || inputs.installprotoc)
run: yum update -y && yum install -y wget unzip ${{ inputs.yumdependencies }}
Expand All @@ -158,7 +158,8 @@ jobs:
run: |
wget 'https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip'
unzip protoc-3.19.4-linux-x86_64.zip
mv bin/protoc /usr/local/bin
mv bin /usr/local
mv include /usr/local
- uses: actions/cache@v2
with:
path: .build
Expand Down

0 comments on commit 981bb79

Please sign in to comment.