-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from Zondax/dev
New Release
- Loading branch information
Showing
13 changed files
with
83 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build through reusable workflow | ||
|
||
# This workflow is mandatory in all applications | ||
# https://developers.ledger.com/docs/device-app/integration/requirements/development#workflows | ||
# | ||
# More information on the guidelines can be found in the repository: | ||
# LedgerHQ/ledger-app-workflows/ | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- develop | ||
- dev # for safety reasons | ||
pull_request: | ||
|
||
jobs: | ||
build_application: | ||
name: Build application using the reusable workflow | ||
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1 | ||
with: | ||
builder: "ledger-app-builder" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,33 @@ | ||
[env] | ||
HEAP_SIZE = "16300" | ||
HEAP_SIZE = "16384" | ||
APPVERSION = "0.6.0" | ||
|
||
[unstable] | ||
build-std = ["core", "alloc"] | ||
build-std-features = ["compiler-builtins-mem"] | ||
build-std-features = ["compiler-builtins-mem"] | ||
|
||
|
||
# The opt-level is set based on the device model because stack and binary size. While flex and stax has | ||
# 44K of SRAM, Nanos2 and NanoX have 40K. That difference makes necessary an opt-level s for nano x and nano s2, | ||
# because stack size is not enough otherwise. | ||
# In the other hand, stax and flex should use z. They have more stack, but the app won't fit otherwise. The screen libs | ||
# are heavier, and the app with clear signing won't fit. | ||
|
||
# Opt-leve z optimize the size more, making the app less performant (consumes more stack) | ||
# Opt-leve s optimize the size, but not that much, making the app a bit more performant (consumes less stack) | ||
|
||
# From testing on Nano S2... | ||
# heap 15k, opt-level=z -> 3 participants fail on signing because of heap fragmentation, app size XXX | ||
# heap 16.3k, opt-level=s -> 3 participants work, app size 680K | ||
|
||
[target.nanox] | ||
rustflags = ["-C", "opt-level=s"] | ||
|
||
[target.nanosplus] | ||
rustflags = ["-C", "opt-level=s"] | ||
|
||
[target.stax] | ||
rustflags = ["-C", "opt-level=z"] | ||
|
||
[target.flex] | ||
rustflags = ["-C", "opt-level=z"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters