Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
[target.apex_p]
runner = "speculos -m apex_p"

[build]
target = "apex_p"

[profile.release]
opt-level = 'z'
lto = true
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/extra_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run extra checks

# This workflow will run `run_extra_checks.sh` from the project root.

on:
workflow_dispatch:
push:
branches:
- master
- main
- develop
pull_request:

jobs:
run_extra_checks:
runs-on: ubuntu-24.04
steps:
- name: Checkout the repository
uses: actions/checkout@v5

# Note: no need to install docker manually, because it's already installed, see
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md

- name: Run the checks
run: |
docker run --rm -v "$(realpath .):/app" -w /app \
ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest \
bash run_extra_checks.sh
31 changes: 31 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run unit tests

# This workflow will run `run_unit_tests.sh` from the project root for each device model.

on:
workflow_dispatch:
push:
branches:
- master
- main
- develop
pull_request:

jobs:
run_extra_checks:
runs-on: ubuntu-24.04
strategy:
matrix:
model: [nanox, nanosp, stax, flex, apex_p]
steps:
- name: Checkout the repository
uses: actions/checkout@v5

# Note: no need to install docker manually, because it's already installed, see
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md

- name: Run the checks
run: |
docker run --rm -v "$(realpath .):/app" -w /app \
ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest \
bash run_unit_tests.sh ${{ matrix.model }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ __pycache__/
ledger/
# Build directory
build/

# VSCode
.vscode/
Loading
Loading