From b0604080cb0f123ee1170d2ea14090dfa326a107 Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Tue, 10 Jan 2023 17:22:03 -0400 Subject: [PATCH] ci: reduce the amount of API calls made by `arduino/setup-protoc@v1` (#5930) * ci: reduce the amount of API calls made by `arduino/setup-protoc@v1` If the `protoc` compiler version is not available locally, the action will look for the most recent version. We use a fixed version to reduce the amount of API calls being done in all workflows, but mainly on `build-crates-individually.yml` * fix: decrease `protoc` version until the action is fixed --- .github/workflows/build-crates-individually.yml | 5 +++-- .github/workflows/continous-integration-os.yml | 10 ++++++---- .github/workflows/docs.yml | 5 +++-- .github/workflows/lint.yml | 15 +++++++++------ 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-crates-individually.yml b/.github/workflows/build-crates-individually.yml index 4aaf315fd71..8fcd058111a 100644 --- a/.github/workflows/build-crates-individually.yml +++ b/.github/workflows/build-crates-individually.yml @@ -111,9 +111,10 @@ jobs: persist-credentials: false - name: Install last version of Protoc - uses: arduino/setup-protoc@v1 + uses: arduino/setup-protoc@v1.1.2 with: - version: '3.x' + # TODO: increase to latest version after https://github.com/arduino/setup-protoc/issues/33 is fixed + version: '3.20.1' repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions-rs/toolchain@v1 diff --git a/.github/workflows/continous-integration-os.yml b/.github/workflows/continous-integration-os.yml index beda0488846..366cb04b5e6 100644 --- a/.github/workflows/continous-integration-os.yml +++ b/.github/workflows/continous-integration-os.yml @@ -82,9 +82,10 @@ jobs: persist-credentials: false - name: Install last version of Protoc - uses: arduino/setup-protoc@v1 + uses: arduino/setup-protoc@v1.1.2 with: - version: '3.x' + # TODO: increase to latest version after https://github.com/arduino/setup-protoc/issues/33 is fixed + version: '3.20.1' repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions-rs/toolchain@v1 @@ -224,9 +225,10 @@ jobs: persist-credentials: false - name: Install last version of Protoc - uses: arduino/setup-protoc@v1 + uses: arduino/setup-protoc@v1.1.2 with: - version: '3.x' + # TODO: increase to latest version after https://github.com/arduino/setup-protoc/issues/33 is fixed + version: '3.20.1' repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions-rs/toolchain@v1 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 07ea9d6884c..6caa4803e9e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -42,9 +42,10 @@ jobs: persist-credentials: false - name: Install last version of Protoc - uses: arduino/setup-protoc@v1 + uses: arduino/setup-protoc@v1.1.2 with: - version: '3.x' + # TODO: increase to latest version after https://github.com/arduino/setup-protoc/issues/33 is fixed + version: '3.20.1' repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Install latest beta diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d0ac7aa7ddc..4763bf52f59 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -67,9 +67,10 @@ jobs: persist-credentials: false - name: Install last version of Protoc - uses: arduino/setup-protoc@v1 + uses: arduino/setup-protoc@v1.1.2 with: - version: '3.x' + # TODO: increase to latest version after https://github.com/arduino/setup-protoc/issues/33 is fixed + version: '3.20.1' repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Check workflow permissions @@ -117,9 +118,10 @@ jobs: persist-credentials: false - name: Install last version of Protoc - uses: arduino/setup-protoc@v1 + uses: arduino/setup-protoc@v1.1.2 with: - version: '3.x' + # TODO: increase to latest version after https://github.com/arduino/setup-protoc/issues/33 is fixed + version: '3.20.1' repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions-rs/toolchain@v1.0.6 @@ -157,9 +159,10 @@ jobs: persist-credentials: false - name: Install last version of Protoc - uses: arduino/setup-protoc@v1 + uses: arduino/setup-protoc@v1.1.2 with: - version: '3.x' + # TODO: increase to latest version after https://github.com/arduino/setup-protoc/issues/33 is fixed + version: '3.20.1' repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions-rs/toolchain@v1.0.6