From 6bd491b6e664f58f024edba3b5278c39b4250755 Mon Sep 17 00:00:00 2001 From: Angus Bayley Date: Fri, 8 Nov 2024 14:29:20 +0000 Subject: [PATCH] build: release workflows: setup-toolchain => setup-caches release-create.yml release-final-nightly.yml release-final.yml release-prepare-hotfix.yml release-prepare.yml release-prerelease.yml Also updates setup-caches action to not require the AWS params --- .github/workflows/release-create.yml | 12 ++++++++++-- .github/workflows/release-final-nightly.yml | 12 ++++++++++-- .github/workflows/release-final.yml | 12 ++++++++++-- .github/workflows/release-prepare-hotfix.yml | 12 ++++++++++-- .github/workflows/release-prepare.yml | 12 ++++++++++-- .github/workflows/release-prerelease.yml | 13 ++++++++++--- 6 files changed, 60 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-create.yml b/.github/workflows/release-create.yml index ef912273256d..799b5f2554fd 100644 --- a/.github/workflows/release-create.yml +++ b/.github/workflows/release-create.yml @@ -26,8 +26,16 @@ jobs: - name: create release branch run: | git checkout -b $RELEASE_BRANCH - - name: Setup the toolchain - uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop + - name: Setup the caches + uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop + id: setup-caches + with: + install-proto: true + skip-turbo-cache: "false" + accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }} + roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }} + region: ${{ secrets.AWS_CACHE_REGION }} + turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }} - name: install dependencies run: pnpm i - name: Build libs diff --git a/.github/workflows/release-final-nightly.yml b/.github/workflows/release-final-nightly.yml index a69bc6dc46ff..ff792adf42bd 100644 --- a/.github/workflows/release-final-nightly.yml +++ b/.github/workflows/release-final-nightly.yml @@ -29,8 +29,16 @@ jobs: - name: merge develop run: | git merge origin/develop -X theirs - - name: Setup the toolchain - uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop + - name: Setup the caches + uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop + id: setup-caches + with: + install-proto: true + skip-turbo-cache: "false" + accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }} + roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }} + region: ${{ secrets.AWS_CACHE_REGION }} + turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }} - uses: ruby/setup-ruby@v1 with: ruby-version: 3.3.0 diff --git a/.github/workflows/release-final.yml b/.github/workflows/release-final.yml index 42a1275c2290..cfcc183141e4 100644 --- a/.github/workflows/release-final.yml +++ b/.github/workflows/release-final.yml @@ -40,8 +40,16 @@ jobs: token: ${{ steps.generate-token.outputs.token }} - name: Setup git user uses: LedgerHQ/ledger-live/tools/actions/composites/setup-git-user@develop - - name: Setup the toolchain - uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop + - name: Setup the caches + uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop + id: setup-caches + with: + install-proto: true + skip-turbo-cache: "false" + accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }} + roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }} + region: ${{ secrets.AWS_CACHE_REGION }} + turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }} - uses: ruby/setup-ruby@v1 with: ruby-version: 3.3.0 diff --git a/.github/workflows/release-prepare-hotfix.yml b/.github/workflows/release-prepare-hotfix.yml index 4aeb0bbf1821..5016f1f3ff91 100644 --- a/.github/workflows/release-prepare-hotfix.yml +++ b/.github/workflows/release-prepare-hotfix.yml @@ -30,8 +30,16 @@ jobs: - name: Setup git user uses: LedgerHQ/ledger-live/tools/actions/composites/setup-git-user@develop - - name: Setup the toolchain - uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop + - name: Setup the caches + uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop + id: setup-caches + with: + install-proto: true + skip-turbo-cache: "false" + accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }} + roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }} + region: ${{ secrets.AWS_CACHE_REGION }} + turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }} - name: install dependencies run: pnpm i -F "ledger-live" diff --git a/.github/workflows/release-prepare.yml b/.github/workflows/release-prepare.yml index 15feff24537f..3514c6ae36ca 100644 --- a/.github/workflows/release-prepare.yml +++ b/.github/workflows/release-prepare.yml @@ -30,8 +30,16 @@ jobs: - name: Setup git user uses: LedgerHQ/ledger-live/tools/actions/composites/setup-git-user@develop - - name: Setup the toolchain - uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop + - name: Setup the caches + uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop + id: setup-caches + with: + install-proto: true + skip-turbo-cache: "false" + accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }} + roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }} + region: ${{ secrets.AWS_CACHE_REGION }} + turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }} - name: install dependencies run: pnpm i -F "ledger-live" diff --git a/.github/workflows/release-prerelease.yml b/.github/workflows/release-prerelease.yml index 67d23446d494..93068751c04e 100644 --- a/.github/workflows/release-prerelease.yml +++ b/.github/workflows/release-prerelease.yml @@ -32,11 +32,18 @@ jobs: with: ref: ${{ inputs.ref }} token: ${{ steps.generate-token.outputs.token }} - - name: Setup git user uses: LedgerHQ/ledger-live/tools/actions/composites/setup-git-user@develop - - name: Setup the toolchain - uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop + - name: Setup the caches + uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop + id: setup-caches + with: + install-proto: true + skip-turbo-cache: "false" + accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }} + roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }} + region: ${{ secrets.AWS_CACHE_REGION }} + turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }} - uses: LedgerHQ/ledger-live/tools/actions/get-package-infos@develop id: desktop-version with: