Cache bufbuilder

This commit is contained in:
Franck Royer 2021-04-23 16:29:58 +10:00
parent 00d4c41967
commit 6bd0f123da
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 11 additions and 1 deletions

View File

@ -10,6 +10,8 @@ on:
jobs:
build_and_test:
env:
BUF_VERSION: '0.39.1'
runs-on: ubuntu-latest
steps:
@ -47,10 +49,18 @@ jobs:
shell: bash
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${{ BUF_VERSION }}-ubuntu-latest-v1
- name: Install bufbuild
if: steps.cache-buf-bin.outputs.cache-hit != 'true'
uses: mu-io/setup-buf@v1beta
with:
buf-version: '0.39.1'
buf-version: ${{ env.BUF_VERSION }}
- name: Install Protoc
uses: arduino/setup-protoc@v1