From ba869a2e7f037b34585791bcfebb9d854d6f0a01 Mon Sep 17 00:00:00 2001 From: Asmir Avdicevic Date: Tue, 30 Aug 2022 21:22:09 +0200 Subject: [PATCH] ci: protoc fix (#3566) --- .github/workflows/ci.yml | 16 +++++++++++++++- .github/workflows/jsonrpc.yml | 5 +++++ .github/workflows/node-package.yml | 6 +++++- .github/workflows/node-tests.yml | 6 +++++- 4 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9b1378fe..6cecd2eb2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,11 @@ jobs: toolchain: stable components: clippy override: true + - name: Install Protoc + uses: arduino/setup-protoc@v1 + with: + version: '3.20.1' + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Cache rust cargo artifacts uses: swatinem/rust-cache@v1 - uses: actions-rs/clippy-check@v1 @@ -55,6 +60,11 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v2 + - name: Install Protoc + uses: arduino/setup-protoc@v1 + with: + version: '3.20.1' + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Install rust stable toolchain uses: actions-rs/toolchain@v1 with: @@ -94,7 +104,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@master - + - name: Install Protoc + uses: arduino/setup-protoc@v1 + with: + version: '3.20.1' + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Install ${{ matrix.rust }} uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/jsonrpc.yml b/.github/workflows/jsonrpc.yml index 5b1781a46..43290f2b3 100644 --- a/.github/workflows/jsonrpc.yml +++ b/.github/workflows/jsonrpc.yml @@ -26,6 +26,11 @@ jobs: override: true - name: Add Rust cache uses: Swatinem/rust-cache@v1.3.0 + - name: Install Protoc + uses: arduino/setup-protoc@v1 + with: + version: '3.20.1' + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: npm install run: | cd deltachat-jsonrpc/typescript diff --git a/.github/workflows/node-package.yml b/.github/workflows/node-package.yml index a73e0579e..267442a93 100644 --- a/.github/workflows/node-package.yml +++ b/.github/workflows/node-package.yml @@ -27,7 +27,11 @@ jobs: cargo -vV npm --version node --version - + - name: Install Protoc + uses: arduino/setup-protoc@v1 + with: + version: '3.20.1' + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Cache node modules uses: actions/cache@v2 with: diff --git a/.github/workflows/node-tests.yml b/.github/workflows/node-tests.yml index 6f90530da..4742b3a9f 100644 --- a/.github/workflows/node-tests.yml +++ b/.github/workflows/node-tests.yml @@ -27,7 +27,11 @@ jobs: cargo -vV npm --version node --version - + - name: Install Protoc + uses: arduino/setup-protoc@v1 + with: + version: '3.20.1' + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Cache node modules uses: actions/cache@v2 with: