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
This commit is contained in:
Gustavo Valverde 2023-01-10 17:22:03 -04:00 committed by GitHub
parent 943a72a0bb
commit b0604080cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 14 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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