Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
live-github-bot[bot] committed May 14, 2024
2 parents af7d002 + f6a745d commit 4d0b535
Show file tree
Hide file tree
Showing 735 changed files with 20,484 additions and 18,885 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
4 changes: 2 additions & 2 deletions .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 Expand Up @@ -77,7 +77,7 @@ jobs:
shell: bash

- name: upload reports
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: reports
path: libs/ledger-live-common/reports
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
4 changes: 2 additions & 2 deletions .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 Expand Up @@ -40,5 +40,5 @@ jobs:
# These currencies are not yet handled by ATLAS, should be added back
# to the list once they are.
# avalanche_c_chain,bsc,polygon,ethereum_classic
BOT_FILTER_CURRENCIES: ethereum,ethereum_goerli,ethereum_sepolia,ethereum_holesky
BOT_FILTER_CURRENCIES: ethereum,ethereum_sepolia,ethereum_holesky
BOT_ENVIRONMENT: staging
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-nitrogen.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-4xlarge-linux]
runs-on: [ledger-live-4xlarge]
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
6 changes: 3 additions & 3 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 All @@ -69,7 +69,7 @@ jobs:
timeout-minutes: 200
- name: upload logs
if: failure() || success()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: bot-transfer.txt
path: bot-transfer.txt
8 changes: 4 additions & 4 deletions .github/workflows/build-desktop-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,19 @@ jobs:
echo "${{matrix.os}}=${{steps.build-app.outcome}}" >> $GITHUB_OUTPUT
- name: Upload linux app
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build-desktop.outputs.version }}-linux-x86_64.AppImage
path: ${{ github.workspace }}/apps/ledger-live-desktop/dist/${{ steps.build-desktop.outputs.name }}-${{ steps.build-desktop.outputs.version }}-linux-x86_64.AppImage
- name: Upload macOS app
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build-desktop.outputs.version }}-mac.dmg
path: ${{ github.workspace }}/apps/ledger-live-desktop/dist/${{ steps.build-desktop.outputs.name }}-${{ steps.build-desktop.outputs.version }}-mac.dmg
- name: Upload windows
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build-desktop.outputs.version }}-win-x64.exe
path: ${{ github.workspace }}/apps/ledger-live-desktop/dist/${{ steps.build-desktop.outputs.name }}-${{ steps.build-desktop.outputs.version }}-win-x64.exe
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
summary,
}
fs.writeFileSync("summary.json", JSON.stringify(data), "utf-8");
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: Upload output
with:
path: ${{ github.workspace }}/summary.json
Expand Down
32 changes: 22 additions & 10 deletions .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
matrix:
config:
[
{ name: "linux", os: "ledger-live-4xlarge-linux", image: "linux-x86_64.AppImage" },
{ name: "linux", os: "ledger-live-4xlarge", image: "linux-x86_64.AppImage" },
{ name: "win", os: "windows-latest", dotnet: true, image: "win-x64.exe" },
{ name: "mac", os: "macos-latest", image: "mac.dmg" },
]
Expand All @@ -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,18 +95,18 @@ 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

- name: Upload ${{ matrix.config.name }} app
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build-desktop.outputs.version }}-${{ matrix.config.image }}
path: ${{ github.workspace }}/apps/ledger-live-desktop/dist/${{ steps.build-desktop.outputs.name }}-${{ steps.build-desktop.outputs.version }}-${{ matrix.config.image }}

- name: Upload bundle metafiles
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: ${{ matrix.config.name }}-js-bundle-metafiles
Expand Down Expand Up @@ -122,15 +134,15 @@ jobs:
app_id: ${{ secrets.GH_BOT_APP_ID }}
private_key: ${{ secrets.GH_BOT_PRIVATE_KEY }}

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: linux-js-bundle-metafiles
path: linux-js-bundle-metafiles
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: win-js-bundle-metafiles
path: win-js-bundle-metafiles
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: mac-js-bundle-metafiles
path: mac-js-bundle-metafiles
Expand Down Expand Up @@ -163,7 +175,7 @@ jobs:
prNumber: ${{ inputs.prNumber }}
mode: desktop

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: Upload output
with:
path: ${{ github.workspace }}/summary.json
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-mobile-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
with:
path: ${{ github.workspace }}/apps/ledger-live-mobile
- name: upload Android app
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.post-version.outputs.version }}-release
path: ${{ github.workspace }}/apps/ledger-live-mobile/android/app/build/outputs/apk/release
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
}],
}
fs.writeFileSync("summary.json", JSON.stringify(output), "utf-8");
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: upload output
with:
path: ${{ github.workspace }}/summary.json
Expand Down
35 changes: 12 additions & 23 deletions .github/workflows/build-mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ permissions:
jobs:
build-mobile-app-android:
name: "Build Ledger Live Mobile (Android)"
runs-on: [ledger-live-4xlarge-linux]
runs-on: [ledger-live-4xlarge]
env:
NODE_OPTIONS: "--max-old-space-size=7168"
steps:
Expand All @@ -46,26 +46,15 @@ jobs:
ref: ${{ inputs.ref || github.sha }}
- 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
- name: Setup the caches
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 }}
turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
env:
ImageOS: ubuntu20
- uses: actions/setup-java@v3
with:
distribution: "zulu" # See 'Supported distributions' for available options
java-version: "11"
- name: setup Android SDK
uses: android-actions/[email protected]
- name: install dependencies
run: pnpm i --filter="live-mobile..." --filter="ledger-live" --no-frozen-lockfile --unsafe-perm
- uses: LedgerHQ/ledger-live/tools/actions/get-package-infos@develop
Expand All @@ -90,13 +79,13 @@ 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:
path: ${{ github.workspace }}/apps/ledger-live-mobile
- name: upload Android app
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.post-version.outputs.version }}-release
path: ${{ github.workspace }}/apps/ledger-live-mobile/android/app/build/outputs/apk/stagingRelease
Expand All @@ -119,8 +108,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 All @@ -134,7 +123,7 @@ jobs:
pnpm mobile bundle:android:prod
pnpm mobile gen-metafile
- name: Upload mobile metafile
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mobile.metafile.json
path: ${{ github.workspace }}/apps/ledger-live-mobile/mobile.metafile.json
Expand All @@ -154,7 +143,7 @@ jobs:
with:
ref: ${{ inputs.ref || github.sha }}
- name: download mobile metafile
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: mobile.metafile.json
- uses: LedgerHQ/ledger-live/tools/actions/build-checks@develop
Expand Down Expand Up @@ -256,7 +245,7 @@ jobs:
}],
}
fs.writeFileSync("summary.json", JSON.stringify(output), "utf-8");
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: upload output
with:
path: ${{ github.workspace }}/summary.json
Expand Down
Loading

0 comments on commit 4d0b535

Please sign in to comment.