Skip to content

Commit

Permalink
ci: reduce the amount of API calls made by arduino/setup-protoc@v1 (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
gustavovalverde authored Jan 10, 2023
1 parent 943a72a commit b060408
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-crates-individually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/continous-integration-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
Expand Down Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit b060408

Please sign in to comment.