60: Cache bufbuilder r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
This commit is contained in:
bors[bot] 2021-04-23 06:40:16 +00:00 committed by GitHub
commit f0f76cb661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -10,6 +10,8 @@ on:
jobs: jobs:
build_and_test: build_and_test:
env:
BUF_VERSION: '0.39.1'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -47,10 +49,18 @@ jobs:
shell: bash shell: bash
run: cd nim-waku && ./build/wakunode2 --help run: cd nim-waku && ./build/wakunode2 --help
- name: Cache buf binary
id: cache-buf-bin
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/buf/
key: buf-bin-v${{ env.BUF_VERSION }}-ubuntu-latest-v1
- name: Install bufbuild - name: Install bufbuild
if: steps.cache-buf-bin.outputs.cache-hit != 'true'
uses: mu-io/setup-buf@v1beta uses: mu-io/setup-buf@v1beta
with: with:
buf-version: '0.39.1' buf-version: ${{ env.BUF_VERSION }}
- name: Install Protoc - name: Install Protoc
uses: arduino/setup-protoc@v1 uses: arduino/setup-protoc@v1