|
15 | 15 | runs-on: ubuntu-latest
|
16 | 16 | outputs:
|
17 | 17 | rust_apps: ${{ steps.get_rust_apps.outputs.rust_apps }}
|
| 18 | + exclude_apps: ${{ steps.get_rust_apps.outputs.exclude_apps }} |
| 19 | + ledger_devices: ${{ steps.get_rust_apps.outputs.ledger_devices }} |
18 | 20 | steps:
|
19 | 21 | - name: Checkout repository
|
20 | 22 | uses: actions/checkout@v4
|
|
27 | 29 | - name: Get all rust apps
|
28 | 30 | id: get_rust_apps
|
29 | 31 | run: |
|
30 |
| - python .github/workflows/get_rust_apps.py ${{ secrets.GH_TOKEN }} > rust_apps.txt |
31 |
| - echo "rust_apps=$(cat rust_apps.txt)" >> $GITHUB_OUTPUT |
| 32 | + python .github/workflows/get_rust_apps.py ${{ secrets.GH_TOKEN }} |
| 33 | + echo "rust_apps=$(cat rust_apps.json)" >> $GITHUB_OUTPUT |
| 34 | + echo "exclude_apps=$(cat exclude_apps.json)" >> $GITHUB_OUTPUT |
| 35 | + echo "ledger_devices=$(cat ledger_devices.json)" >> $GITHUB_OUTPUT |
32 | 36 |
|
33 | 37 | display-rust-apps:
|
34 | 38 | name: Display Rust Apps
|
|
38 | 42 | - name: Display Rust Apps
|
39 | 43 | run: |
|
40 | 44 | echo "Rust apps: ${{ needs.retrieve-rust-apps.outputs.rust_apps }}"
|
| 45 | + echo "Exclude apps: ${{ needs.retrieve-rust-apps.outputs.exclude_apps }}" |
| 46 | + echo "Ledger devices: ${{ needs.retrieve-rust-apps.outputs.ledger_devices }}" |
41 | 47 |
|
42 | 48 | test-build:
|
43 | 49 | name: Build for all targets
|
|
46 | 52 | fail-fast: false
|
47 | 53 | matrix:
|
48 | 54 | app-name: ${{ fromJSON(needs.retrieve-rust-apps.outputs.rust_apps) }}
|
49 |
| - exclude: |
50 |
| - - app-name: "app-kadena-legacy" |
51 |
| - - app-name: "app-age" |
52 |
| - - app-name: "app-provenance" |
53 |
| - - app-name: "app-conflux" |
54 |
| - - app-name: "app-pocket" |
| 55 | + device: ${{ fromJSON(needs.retrieve-rust-apps.outputs.ledger_devices) }} |
| 56 | + exclude: ${{ fromJSON(needs.retrieve-rust-apps.outputs.exclude_apps) }} |
55 | 57 | runs-on: ubuntu-latest
|
56 | 58 | container:
|
57 | 59 | image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
|
@@ -106,13 +108,11 @@ jobs:
|
106 | 108 | run: |
|
107 | 109 | cd ${{ matrix.app-name }}
|
108 | 110 | build_directory=$(ledger-manifest --output-build-directory ledger_app.toml)
|
109 |
| - devices="$(ledger-manifest --output-devices ledger_app.toml -j | sed 's/+/plus/' | jq -rc '.devices[]')" |
110 | 111 | cd $build_directory
|
111 | 112 | # Required as patch has a different version from what is locked in Cargo.lock
|
112 | 113 | cargo +$RUST_NIGHTLY update include_gif
|
113 | 114 | cargo +$RUST_NIGHTLY update ledger_secure_sdk_sys
|
114 | 115 | cargo +$RUST_NIGHTLY update ledger_device_sdk
|
115 |
| - for device in $devices; do |
116 |
| - echo "Build for "$device |
117 |
| - cargo ledger build $device |
118 |
| - done |
| 116 | + device=$(echo ${{ matrix.device }} | sed 's/+/plus/') |
| 117 | + echo "Build for "$device |
| 118 | + cargo ledger build $device |
0 commit comments