Skip to content

Commit eb7394b

Browse files
Merge pull request #548 from LedgerHQ/release/1.10.4
App release 1.10.4
2 parents 2264f67 + ee10ca2 commit eb7394b

File tree

1,409 files changed

+5860
-6706
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,409 files changed

+5860
-6706
lines changed

.github/workflows/auto-author-assign.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: 'Auto Author Assign'
23

34
on:

.github/workflows/build-workflow.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/ci-workflow.yml

Lines changed: 56 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,19 @@
1+
---
12
name: Tests
23

34
on:
5+
workflow_dispatch:
46
push:
5-
branches:
6-
- master
7-
pull_request:
87
branches:
98
- master
109
- develop
11-
workflow_dispatch:
10+
pull_request:
1211

1312
jobs:
14-
scan-build:
15-
name: Clang Static Analyzer
16-
runs-on: ubuntu-latest
17-
container:
18-
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest
1913

20-
steps:
21-
- uses: actions/checkout@v3
22-
23-
- name: Build with Clang Static Analyzer
24-
run: |
25-
make clean
26-
scan-build --use-cc=clang -analyze-headers -enable-checker security -enable-checker unix -enable-checker valist -o scan-build --status-bugs make default
27-
28-
- uses: actions/upload-artifact@v3
29-
if: failure()
30-
with:
31-
name: scan-build
32-
path: scan-build
33-
34-
# =====================================================
35-
# ZEMU TESTS
36-
# =====================================================
14+
# =====================================================
15+
# ZEMU TESTS
16+
# =====================================================
3717

3818
building_for_e2e_zemu_tests:
3919
name: Building binaries for E2E Zemu tests
@@ -97,9 +77,9 @@ jobs:
9777
- name: Run zemu tests
9878
run: cd tests/zemu/ && yarn test
9979

100-
# =====================================================
101-
# SPECULOS TESTS
102-
# =====================================================
80+
# =====================================================
81+
# SPECULOS TESTS
82+
# =====================================================
10383

10484

10585
building_for_e2e_speculos_tests:
@@ -114,9 +94,9 @@ jobs:
11494
- name: Build testing binaries
11595
run: |
11696
mkdir tests/speculos/elfs
117-
make clean && make -j DEBUG=1 NFT_TESTING_KEY=1 BOLOS_SDK=$NANOS_SDK && mv bin/app.elf tests/speculos/elfs/nanos.elf
118-
make clean && make -j DEBUG=1 NFT_TESTING_KEY=1 BOLOS_SDK=$NANOX_SDK && mv bin/app.elf tests/speculos/elfs/nanox.elf
119-
make clean && make -j DEBUG=1 NFT_TESTING_KEY=1 BOLOS_SDK=$NANOSP_SDK && mv bin/app.elf tests/speculos/elfs/nanosp.elf
97+
make clean && make -j DEBUG=1 NFT_STAGING_KEY=1 BOLOS_SDK=$NANOS_SDK && mv bin/app.elf tests/speculos/elfs/nanos.elf
98+
make clean && make -j DEBUG=1 NFT_STAGING_KEY=1 BOLOS_SDK=$NANOX_SDK && mv bin/app.elf tests/speculos/elfs/nanox.elf
99+
make clean && make -j DEBUG=1 NFT_STAGING_KEY=1 BOLOS_SDK=$NANOSP_SDK && mv bin/app.elf tests/speculos/elfs/nanosp.elf
120100
121101
- name: Upload app binaries
122102
uses: actions/upload-artifact@v3
@@ -162,21 +142,60 @@ jobs:
162142
pytest --model ${{ matrix.model }} --path ./elfs/${{ matrix.model }}.elf --display headless
163143
164144
165-
# =====================================================
166-
# RAGGER TESTS
167-
# =====================================================
145+
# =====================================================
146+
# RAGGER TESTS
147+
# =====================================================
168148

169149
build_ragger_elfs:
170150
name: Build app for Ragger tests
171151
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
172152
with:
173153
upload_app_binaries_artifact: "ragger_elfs"
174-
flags: "DEBUG=1 CAL_CI_KEY=1 DOMAIN_NAME_TEST_KEY=1"
154+
flags: "DEBUG=1 CAL_TEST_KEY=1 DOMAIN_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1"
175155

176156
jobs-ragger-tests:
177157
name: Run Ragger tests
178158
needs: build_ragger_elfs
179159
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
180160
with:
181161
download_app_binaries_artifact: "ragger_elfs"
182-
test_dir: tests/ragger
162+
163+
# =====================================================
164+
# STATIC ANALYSIS
165+
# =====================================================
166+
167+
# Static analysis on the main ETH chain is covered by the guidelines enforcer
168+
scan-build:
169+
name: Clang Static Analyzer on altcoin
170+
runs-on: ubuntu-latest
171+
container:
172+
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
173+
strategy:
174+
fail-fast: false
175+
matrix:
176+
device: ["nanos", "nanos2", "nanox", "stax"]
177+
178+
steps:
179+
- name: Clone
180+
uses: actions/checkout@v3
181+
with:
182+
submodules: recursive
183+
184+
- name: Build with Clang Static Analyzer
185+
run: |
186+
eval "BOLOS_SDK=\$$(echo ${{ matrix.device }} | tr [:lower:] [:upper:])_SDK" && \
187+
echo "BOLOS_SDK value will be: ${BOLOS_SDK}" && \
188+
make -j ENABLE_SDK_WERROR=1 BOLOS_SDK=${BOLOS_SDK} CHAIN=polygon scan-build
189+
190+
- uses: actions/upload-artifact@v3
191+
if: failure()
192+
with:
193+
name: scan-build
194+
path: scan-build
195+
196+
- name: Upload scan result
197+
if: failure()
198+
uses: actions/upload-artifact@v3
199+
with:
200+
name: scan-build
201+
path: scan-build
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1+
---
12
name: Code style check
23

4+
# This workflow will run linting checks to ensure a level of uniformization among all Ledger applications.
5+
#
6+
# The presence of this workflow is mandatory as a minimal level of linting is required.
7+
# You are however free to modify the content of the .clang-format file and thus the coding style of your application.
8+
# We simply ask you to not diverge too much from the linting of the Boilerplate application.
9+
310
on:
11+
workflow_dispatch:
412
push:
513
branches:
6-
- master
14+
- master
15+
- main
16+
- develop
717
pull_request:
8-
branches:
9-
- master
10-
- develop
1118

1219
jobs:
13-
job_lint:
14-
name: Lint
15-
runs-on: ubuntu-latest
16-
17-
steps:
18-
- name: Clone
19-
uses: actions/checkout@v3
20-
21-
- name: Lint
22-
uses: DoozyX/[email protected]
23-
with:
24-
source: "./"
25-
extensions: "h,c"
26-
clangFormatVersion: 12.0.1
20+
check_linting:
21+
name: Check linting using the reusable workflow
22+
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_lint.yml@v1
23+
with:
24+
source: './'
25+
extensions: 'h,c'
26+
version: 12

0 commit comments

Comments
 (0)