Skip to content

Commit

Permalink
Merge pull request #6458 from LedgerHQ/feat/live-10136-new-runner-con…
Browse files Browse the repository at this point in the history
…figs

[LIVE-10136] new runner configs
  • Loading branch information
valpinkman authored Apr 5, 2024
2 parents 6b41b3a + b5eb790 commit 305cc61
Show file tree
Hide file tree
Showing 34 changed files with 116 additions and 650 deletions.
2 changes: 1 addition & 1 deletion .github/workflow-templates/bot-coin-family.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-nonreg-nitrogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-nonreg-oxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-portfolio-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ permissions:

jobs:
portfolio:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-staging-explorer-btc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-staging-explorer-eth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-testing-carbon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-testing-mere-denis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-testing-mooncake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-testing-oxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-testing-phosphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-testing-silicium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/bot-transfer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ permissions:

jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
runs-on: [ledger-live-medium]
steps:
- name: generate token
id: generate-token
Expand All @@ -42,7 +42,7 @@ jobs:
token: ${{ steps.generate-token.outputs.token }}
path: coin-apps
- name: Setup the toolchain
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop
with:
accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }}
roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }}
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,25 @@ jobs:

- name: Setup the toolchain
id: toolchain
if: ${{ matrix.config.name != 'linux' }}
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop
with:
accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }}
roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }}
region: ${{ secrets.AWS_CACHE_REGION }}
install_dotnet: ${{ matrix.config.dotnet }}
skip_turbo_cache: "false"
install-dotnet: ${{ matrix.config.dotnet }}
skip-turbo-cache: "false"
turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }}

- name: Setup the caches
id: caches
if: ${{ matrix.config.name == 'linux' }}
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop
with:
accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }}
roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }}
region: ${{ secrets.AWS_CACHE_REGION }}
skip-turbo-cache: "false"
turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }}

- name: Build desktop
Expand All @@ -83,7 +95,7 @@ jobs:

- name: Build the app
id: build-app
run: pnpm build:lld --api="http://127.0.0.1:${{ steps.toolchain.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo"
run: pnpm build:lld --api="http://127.0.0.1:${{ matrix.config.os == 'linux' && steps.caches.outputs.port || steps.toolchain.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo"
env:
GENERATE_METAFILES: 1

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ 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
id: toolchain
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop
id: caches
with:
skip_turbo_cache: "false"
skip-turbo-cache: "false"
accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }}
roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }}
region: ${{ secrets.AWS_CACHE_REGION }}
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
ANDROID_KEY_PASS: staging
NODE_OPTIONS: "--max-old-space-size=7168"
ANDROID_KEYSTORE_FILE: ${{ github.workspace }}/apps/ledger-live-mobile/android/app/staging.kstr
run: pnpm build-ci:llm:android --api="http://127.0.0.1:${{ steps.toolchain.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo"
run: pnpm build-ci:llm:android --api="http://127.0.0.1:${{ steps.caches.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo"
- uses: LedgerHQ/ledger-live/tools/actions/get-package-infos@develop
id: post-version
with:
Expand Down Expand Up @@ -119,8 +119,8 @@ jobs:
accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }}
roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }}
region: ${{ secrets.AWS_CACHE_REGION }}
skip_pod_cache: "false"
skip_turbo_cache: "false"
skip-pod-cache: "false"
skip-turbo-cache: "false"
turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }}
- uses: ruby/setup-ruby@v1
with:
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/generate-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@ jobs:
with:
fetch-depth: 0
token: ${{ steps.generate-token.outputs.token }}

- name: Install gh
run: |
type -p curl >/dev/null || sudo apt install curl -y
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
- name: Checkout PR
if: ${{ inputs.number != null }}
run: gh pr checkout ${{ inputs.number }}
Expand All @@ -71,8 +61,8 @@ jobs:
- name: Setup git user
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-git-user@develop
- name: Setup the toolchain
id: toolchain
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop
id: caches
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop
with:
accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }}
roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }}
Expand All @@ -83,7 +73,7 @@ jobs:
with:
skip_ruby: true
install_playwright: true
turborepo-server-port: ${{ steps.toolchain.outputs.port }}
turborepo-server-port: ${{ steps.caches.outputs.port }}
- uses: LedgerHQ/ledger-live/tools/actions/composites/update-snapshots-desktop@develop
id: update-snapshots
with:
Expand Down
Loading

0 comments on commit 305cc61

Please sign in to comment.