From 6427630408386529abc9d0aed484932967f0e127 Mon Sep 17 00:00:00 2001 From: Heliozoa Date: Mon, 9 Sep 2024 14:47:22 +0300 Subject: [PATCH] Fix gcloud setup on mac and windows --- .github/workflows/macos.yml | 5 ++++- .github/workflows/windows.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index c25881b..9f4c394 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -42,10 +42,13 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: google-github-actions/setup-gcloud@v2 + - id: "auth" + uses: google-github-actions/auth@v2 with: project_id: ${{ secrets.GCP_PROJECT_ID }} credentials_json: ${{ secrets.GCP_SA_KEY }} + - name: "Set up Cloud SDK" + uses: google-github-actions/setup-gcloud@v2 - name: Cargo build run: cargo build -p tmc --release --verbose diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 8418533..e03f5b1 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -48,10 +48,13 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: google-github-actions/setup-gcloud@v2 + - id: "auth" + uses: google-github-actions/auth@v2 with: project_id: ${{ secrets.GCP_PROJECT_ID }} credentials_json: ${{ secrets.GCP_SA_KEY }} + - name: "Set up Cloud SDK" + uses: google-github-actions/setup-gcloud@v2 - name: Enable long paths for git run: git config --system core.longpaths true # allow long paths from git deps