@@ -31,54 +31,48 @@ jobs:
31
31
echo "repo=${{ github.repository}}" >> $GITHUB_OUTPUT
32
32
echo "branch=${{ github.ref }}" >> $GITHUB_OUTPUT
33
33
fi
34
- # retrieve-rust-apps:
35
- # name: Retrieve Rust Apps
36
- # runs-on: ubuntu-latest
37
- # needs: how-workflow-is-called
38
- # outputs:
39
- # rust_apps: ${{ steps.get_rust_apps.outputs.rust_apps }}
40
- # steps:
41
- # - name: Checkout repository
42
- # uses: actions/checkout@v4
43
- # with:
44
- # repository: ${{ needs.how-workflow-is-called.outputs.repository }}
45
- # ref: ${{ needs.how-workflow-is-called.outputs.branch }}
46
- # - name: Set up Python
47
- # uses: actions/setup-python@v4
48
- # with:
49
- # python-version: '3.x'
50
- # - name: Install ledgered
51
- # run: pip install ledgered
52
- # - name: Get all rust apps
53
- # id: get_rust_apps
54
- # run: |
55
- # python .github/workflows/get_rust_apps.py ${{ secrets.GITHUB_TOKEN }}
56
- # echo "rust_apps=$(cat rust_apps.json)" >> $GITHUB_OUTPUT
34
+ retrieve-rust-apps :
35
+ name : Retrieve Rust Apps
36
+ runs-on : ubuntu-latest
37
+ needs : how-workflow-is-called
38
+ outputs :
39
+ rust_apps : ${{ steps.get_rust_apps.outputs.rust_apps }}
40
+ steps :
41
+ - name : Checkout repository
42
+ uses : actions/checkout@v4
43
+ with :
44
+ repository : ${{ needs.how-workflow-is-called.outputs.repository }}
45
+ ref : ${{ needs.how-workflow-is-called.outputs.branch }}
46
+ - name : Set up Python
47
+ uses : actions/setup-python@v4
48
+ with :
49
+ python-version : ' 3.x'
50
+ - name : Install ledgered
51
+ run : pip install ledgered
52
+ - name : Get all rust apps
53
+ id : get_rust_apps
54
+ run : |
55
+ python .github/workflows/get_rust_apps.py ${{ secrets.GITHUB_TOKEN }}
56
+ echo "rust_apps=$(cat rust_apps.json)" >> $GITHUB_OUTPUT
57
57
58
- # display-rust-apps:
59
- # name: Display Rust Apps
60
- # runs-on: ubuntu-latest
61
- # needs: retrieve-rust-apps
62
- # steps:
63
- # - name: Display Rust Apps
64
- # run: |
65
- # echo "Rust apps: ${{ needs.retrieve-rust-apps.outputs.rust_apps }}"
58
+ display-rust-apps :
59
+ name : Display Rust Apps
60
+ runs-on : ubuntu-latest
61
+ needs : retrieve-rust-apps
62
+ steps :
63
+ - name : Display Rust Apps
64
+ run : |
65
+ echo "Rust apps: ${{ needs.retrieve-rust-apps.outputs.rust_apps }}"
66
66
67
67
test-build :
68
68
name : Build for all targets
69
- # needs: [retrieve-rust-apps, how-workflow-is-called]
70
- needs : [how-workflow-is-called]
69
+ needs : [retrieve-rust-apps, how-workflow-is-called]
71
70
strategy :
72
71
fail-fast : false
73
72
matrix :
74
- app-name : []
75
- device : []
76
- # include: ${{ fromJSON(needs.retrieve-rust-apps.outputs.rust_apps) }}
77
- include :
78
- - app-name : " app-boilerplate-rust"
79
- device : " nanos+"
80
- - app-name : " app-starknet"
81
- device : " nanos+"
73
+ app-name : ["app-boilerplate-rust"]
74
+ device : ["nanos+", "nanox", "stax", "flex"]
75
+ include : ${{ fromJSON(needs.retrieve-rust-apps.outputs.rust_apps) }}
82
76
runs-on : ubuntu-latest
83
77
container :
84
78
image : ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
0 commit comments