From 6bd0f123da5a4f4f9eac87e6b5b7b54ed0f702e5 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 23 Apr 2021 16:29:58 +1000 Subject: [PATCH 1/2] Cache bufbuilder --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ec556e31c..670fae1d97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 From 880870bb15bc050d8ff183665338226e1c21c366 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 23 Apr 2021 16:38:00 +1000 Subject: [PATCH 2/2] Cache bufbuilder --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 670fae1d97..b504021d26 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,7 +54,7 @@ jobs: uses: actions/cache@v2 with: path: /opt/hostedtoolcache/buf/ - key: buf-bin-v${{ BUF_VERSION }}-ubuntu-latest-v1 + key: buf-bin-v${{ env.BUF_VERSION }}-ubuntu-latest-v1 - name: Install bufbuild if: steps.cache-buf-bin.outputs.cache-hit != 'true'