Skip to content

Commit

Permalink
temp: bypass pnpm and turborepo cache during actions toolchain setup
Browse files Browse the repository at this point in the history
  • Loading branch information
angusbayley committed Sep 11, 2024
1 parent a7a608a commit 41807cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ jobs:
ref: ${{ inputs.ref || github.sha }}
fetch-depth: 0
- name: Setup the toolchain
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@fix/turborepo-2-upgrade-from-scratch
id: toolchain
with:
skip-turbo-cache: "false"
Expand Down
27 changes: 0 additions & 27 deletions tools/actions/composites/setup-toolchain/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,6 @@ runs:
role-to-assume: arn:aws:iam::${{ inputs.accountId }}:role/${{ inputs.roleName }}
aws-region: ${{ inputs.region }}

- name: Cache pnpm store
uses: tespkg/actions-cache@v1
if: steps.aws.conclusion == 'success' && inputs.skip-pnpm-cache != 'true'
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
accessKey: ${{ env.AWS_ACCESS_KEY_ID }}
secretKey: ${{ env.AWS_SECRET_ACCESS_KEY }}
sessionToken: ${{ env.AWS_SESSION_TOKEN }}
bucket: ll-gha-s3-cache
region: ${{ inputs.region }}
use-fallback: false

- uses: actions/setup-node@v3
with:
node-version: 20.11.0
Expand All @@ -90,18 +75,6 @@ runs:
npm i -g npm
shell: bash

- name: TurboRepo local caching server
id: turborepo-cache-server
if: steps.aws.conclusion == 'success' && inputs.skip_turbo_cache != 'true'
uses: LedgerHQ/ledger-live/tools/actions/turborepo-s3-cache@develop
with:
server-token: "${{ inputs.turbo-server-token }}"
cleanup-cache-folder: "true"
aws-access-key: ${{ env.AWS_ACCESS_KEY_ID }}
aws-secret-key: ${{ env.AWS_SECRET_ACCESS_KEY }}
aws-session-token: ${{ env.AWS_SESSION_TOKEN }}
region: ${{ inputs.region }}

- name: Cache LLM pods
uses: actions/cache@v3
if: inputs.skip-pod-cache != 'true'
Expand Down

0 comments on commit 41807cf

Please sign in to comment.