Skip to content

Commit 255d0b0

Browse files
committed
Test
1 parent bb8a01d commit 255d0b0

File tree

1 file changed

+42
-32
lines changed

1 file changed

+42
-32
lines changed

.github/workflows/reusable_build_all_apps.yml

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -31,38 +31,38 @@ jobs:
3131
echo "repo=${{ github.repository}}" >> $GITHUB_OUTPUT
3232
echo "branch=${{ github.ref }}" >> $GITHUB_OUTPUT
3333
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-
exclude_apps: ${{ steps.get_rust_apps.outputs.exclude_apps }}
41-
ledger_devices: ${{ steps.get_rust_apps.outputs.ledger_devices }}
42-
steps:
43-
- name: Checkout repository
44-
uses: actions/checkout@v4
45-
with:
46-
repository: ${{ needs.how-workflow-is-called.outputs.repository }}
47-
ref: ${{ needs.how-workflow-is-called.outputs.branch }}
48-
- name: Set up Python
49-
uses: actions/setup-python@v4
50-
with:
51-
python-version: '3.x'
52-
- name: Install ledgered
53-
run: pip install ledgered
54-
- name: Get all rust apps
55-
id: get_rust_apps
56-
run: |
57-
python .github/workflows/get_rust_apps.py ${{ secrets.GITHUB_TOKEN }}
58-
echo "rust_apps=$(cat rust_apps.json)" >> $GITHUB_OUTPUT
59-
echo "exclude_apps=$(cat exclude_apps.json)" >> $GITHUB_OUTPUT
60-
echo "ledger_devices=$(cat ledger_devices.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+
# exclude_apps: ${{ steps.get_rust_apps.outputs.exclude_apps }}
41+
# ledger_devices: ${{ steps.get_rust_apps.outputs.ledger_devices }}
42+
# steps:
43+
# - name: Checkout repository
44+
# uses: actions/checkout@v4
45+
# with:
46+
# repository: ${{ needs.how-workflow-is-called.outputs.repository }}
47+
# ref: ${{ needs.how-workflow-is-called.outputs.branch }}
48+
# - name: Set up Python
49+
# uses: actions/setup-python@v4
50+
# with:
51+
# python-version: '3.x'
52+
# - name: Install ledgered
53+
# run: pip install ledgered
54+
# - name: Get all rust apps
55+
# id: get_rust_apps
56+
# run: |
57+
# python .github/workflows/get_rust_apps.py ${{ secrets.GITHUB_TOKEN }}
58+
# echo "rust_apps=$(cat rust_apps.json)" >> $GITHUB_OUTPUT
59+
# echo "exclude_apps=$(cat exclude_apps.json)" >> $GITHUB_OUTPUT
60+
# echo "ledger_devices=$(cat ledger_devices.json)" >> $GITHUB_OUTPUT
6161

6262
display-rust-apps:
6363
name: Display Rust Apps
6464
runs-on: ubuntu-latest
65-
needs: retrieve-rust-apps
65+
# needs: retrieve-rust-apps
6666
steps:
6767
- name: Display Rust Apps
6868
run: |
@@ -72,13 +72,23 @@ jobs:
7272
7373
test-build:
7474
name: Build for all targets
75-
needs: [retrieve-rust-apps, how-workflow-is-called]
75+
# needs: [retrieve-rust-apps, how-workflow-is-called]
76+
needs: [how-workflow-is-called]
7677
strategy:
7778
fail-fast: false
7879
matrix:
79-
app-name: ${{ fromJSON(needs.retrieve-rust-apps.outputs.rust_apps) }}
80-
device: ${{ fromJSON(needs.retrieve-rust-apps.outputs.ledger_devices) }}
81-
exclude: ${{ fromJSON(needs.retrieve-rust-apps.outputs.exclude_apps) }}
80+
# app-name: ${{ fromJSON(needs.retrieve-rust-apps.outputs.rust_apps) }}
81+
# device: ${{ fromJSON(needs.retrieve-rust-apps.outputs.ledger_devices) }}
82+
# exclude: ${{ fromJSON(needs.retrieve-rust-apps.outputs.exclude_apps) }}
83+
include:
84+
- app-name: "app-boilerplate-rust"
85+
device: "nanox"
86+
- app-name: "app-boilerplate-rust"
87+
device: "nanos+"
88+
- app-name: "app-boilerplate-rust"
89+
device: "stax"
90+
- app-name: "app-boilerplate-rust"
91+
device: "flex"
8292
runs-on: ubuntu-latest
8393
container:
8494
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest

0 commit comments

Comments
 (0)