Skip to content

Commit

Permalink
Merge pull request #31 from LedgerHQ/update-app
Browse files Browse the repository at this point in the history
Update app : features, UI, tests, CI.
  • Loading branch information
agrojean-ledger authored Nov 16, 2023
2 parents f3d9f26 + 3c16549 commit 0aafd40
Show file tree
Hide file tree
Showing 180 changed files with 2,065 additions and 202 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,28 @@ env:
CARGO_TERM_COLOR: always

jobs:
build_clippy_fmt:
build:
name : Build
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest
strategy:
matrix:
target: ["nanos", "nanox", "nanosplus"]
steps:
- name: arm-none-eabi-gcc
uses: fiam/[email protected]
with:
release: '9-2019-q4'
- name: Checkout
- name: Clone
uses: actions/checkout@v3
- name: Build app
run: cargo ledger build ${{ matrix.target }}

clippy_fmt:
name: Run static analysis and formatting check
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest
steps:
- name: Clone
uses: actions/checkout@v3
- name: Install clang
run: sudo apt-get update && sudo apt install -y clang
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rust-src, rustfmt, clippy
- name: Install cargo-ledger
run: cargo install --git=https://github.com/LedgerHQ/cargo-ledger
- name: Setup cargo-ledger
run: cargo ledger setup
- name: Cargo clippy
uses: actions-rs/cargo@v1
with:
Expand All @@ -42,6 +44,3 @@ jobs:
with:
command: fmt
args: --all -- --check
- name: Build app
run: cargo ledger build nanosplus

18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
target
app.json
app_nanos.json
app_nanosplus.json
app_nanox.json

# Temporary directory with snapshots taken during test runs
tests/snapshots-tmp/

# Python
*.pyc[cod]
*.egg
__pycache__/
*.egg-info/
.eggs/
.python-version

# Related to the Ledger VSCode extension
# Virtual env for sideload (macOS and Windows)
ledger/
# Build directory
build/
Loading

0 comments on commit 0aafd40

Please sign in to comment.