mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 05:06:28 +00:00
fix(ci): add repo-token to setup-protoc action for authentication
- Add GITHUB_TOKEN parameter to arduino/setup-protoc@v3 action - Ensure proper authentication for Protoc installation in CI workflow - Maintain consistent setup across different CI environments
This commit is contained in:
@@ -60,12 +60,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up authentication
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: echo "Authenticated with GITHUB_TOKEN"
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
# Installation system dependencies
|
# Installation system dependencies
|
||||||
- name: Install system dependencies (Ubuntu)
|
- name: Install system dependencies (Ubuntu)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
@@ -81,11 +75,22 @@ jobs:
|
|||||||
targets: ${{ matrix.variant.target }}
|
targets: ${{ matrix.variant.target }}
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
|
|
||||||
# Setting up Protobuf and Flatbuffers
|
# Install system dependencies
|
||||||
- name: Setup Protoc
|
- name: Cache Protoc
|
||||||
|
id: cache-protoc
|
||||||
|
uses: actions/cache@v4.2.3
|
||||||
|
with:
|
||||||
|
path: /Users/runner/hostedtoolcache/protoc
|
||||||
|
key: protoc-${{ runner.os }}-30.2
|
||||||
|
restore-keys: |
|
||||||
|
protoc-${{ runner.os }}-
|
||||||
|
|
||||||
|
- name: Install Protoc
|
||||||
|
if: steps.cache-protoc.outputs.cache-hit != 'true'
|
||||||
uses: arduino/setup-protoc@v3
|
uses: arduino/setup-protoc@v3
|
||||||
with:
|
with:
|
||||||
version: "30.2"
|
version: '30.2'
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Setup Flatc
|
- name: Setup Flatc
|
||||||
uses: Nugine/setup-flatc@v1
|
uses: Nugine/setup-flatc@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user