Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .github/workflows/build-desktop-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,25 @@ permissions:
pull-requests: write

jobs:

build-desktop-app:
strategy:
fail-fast: false
matrix:
config:
[
{ name: "Linux", os: "ledger-live-4xlarge", image: "linux-x86_64.AppImage", output-name: "linux" },
{ name: "Windows", os: "windows-2022", dotnet: true, image: "win-x64.exe", output-name: "win" },
{
name: "Linux",
os: "ledger-live-4xlarge",
image: "linux-x86_64.AppImage",
output-name: "linux",
},
{
name: "Windows",
os: "windows-2022",
dotnet: true,
image: "win-x64.exe",
output-name: "win",
},
{ name: "macOS", os: "macos-14", image: "mac.dmg", output-name: "mac" },
]
name: "${{ matrix.config.name }} Build"
Expand Down Expand Up @@ -65,6 +75,11 @@ jobs:
region: ${{ secrets.AWS_CACHE_REGION }}
turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }}

- name: Setup jFrog
uses: ./tools/actions/composites/setup-jfrog
env:
NPM_REGISTRY: jfrog.ledgerlabs.net/artifactory/api/npm/ledger-live-npm-virtual-green

- name: Build desktop
id: build-desktop
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-build-desktop@develop
Expand Down
19 changes: 19 additions & 0 deletions tools/actions/composites/setup-jfrog/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Setup jFrog"
description: "Setup auth and configuration for jFrog"

runs:
using: composite
steps:
- name: Login to internal JFrog registry
id: jfrog-login
uses: LedgerHQ/actions-security/actions/jfrog-login@actions/jfrog-login-1

- name: Setup npm config for JFrog
env:
NPM_REGISTRY_TOKEN: ${{ steps.jfrog-login.outputs.oidc-token }}
shell: bash
run: |
cat << EOF | tee -a .npmrc
registry=https://${NPM_REGISTRY}/
//${NPM_REGISTRY}/:_authToken=${NPM_REGISTRY_TOKEN}
EOF
Loading