Skip to content

Commit f320574

Browse files
authored
Merge pull request #232 from Zondax/dev
Add apex support
2 parents 64337fa + 1e6899d commit f320574

3,156 files changed

Lines changed: 9056 additions & 16551 deletions

File tree

Some content is hidden

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

.clang-format

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
BasedOnStyle: Google
2+
IndentWidth: 4
3+
ColumnLimit: 125
4+
DerivePointerAlignment: false
5+
PointerAlignment: Right

.clang-tidy

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Checks: "-*,
2+
clang-diagnostic-*,
3+
clang-analyzer-*,
4+
cppcoreguidelines-init-variables,
5+
google-runtime-int,
6+
google-readability-avoid-underscore-in-googletest-name,
7+
misc-*,
8+
-misc-include-cleaner,
9+
performance-*,
10+
portability-*,
11+
readability-*,
12+
-misc-no-recursion,
13+
-readability-function-cognitive-complexity,
14+
-readability-function-size,
15+
-readability-magic-numbers"
16+
WarningsAsErrors: "*"
17+
CheckOptions:
18+
- key: readability-identifier-length.MinimumVariableNameLength
19+
value: 1
20+
- key: readability-identifier-length.MinimumParameterNameLength
21+
value: 1
22+
- key: readability-identifier-length.MinimumLoopCounterNameLength
23+
value: 1
24+
- key: readability-magic-numbers.IgnorePowersOf2IntegerValues
25+
value: true

.github/workflows/check_version.yml

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,9 @@ on:
66
branches:
77
- main
88
- develop
9-
- master # for safety reasons
109

1110
jobs:
12-
configure:
13-
runs-on: ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }}
14-
outputs:
15-
uid_gid: ${{ steps.get-user.outputs.uid_gid }}
16-
steps:
17-
- id: get-user
18-
run: echo "uid_gid=$(id -u):$(id -g)" >> $GITHUB_OUTPUT
19-
20-
get_version:
21-
needs: configure
22-
runs-on: ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }}
23-
container:
24-
image: zondax/ledger-app-builder:latest
25-
options: --user ${{ needs.configure.outputs.uid_gid }}
26-
env:
27-
SDK_VARNAME: NANOSP_SDK
28-
outputs:
29-
version: ${{ steps.store-version.outputs.version }}
30-
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v4
33-
with:
34-
submodules: true
35-
- run: make version
36-
- id: store-version
37-
run: echo "version=$(cat ./app/app.version)" >> $GITHUB_OUTPUT
38-
39-
check_app_version:
40-
needs: get_version
41-
runs-on: ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }}
42-
steps:
43-
- id: checkTag
44-
uses: mukunku/tag-exists-action@v1.0.0
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
with:
48-
tag: ${{ needs.get_version.outputs.version }}
49-
50-
- run: echo ${{ steps.checkTag.outputs.exists }}
51-
52-
- name: Tag exists
53-
if: ${{ steps.checkTag.outputs.exists == 'true' }}
54-
run: exit 1
11+
ledger-check-version:
12+
uses: Zondax/_workflows/.github/workflows/_ledger_check_version.yml@v3
13+
with:
14+
runs-on: ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }}

.github/workflows/codeql.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "CodeQL"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
pull_request:
7+
branches:
8+
- main
9+
- develop
10+
- master
11+
- dev
12+
paths-ignore:
13+
- '.github/workflows/*.yml'
14+
- 'tests/*'
15+
16+
jobs:
17+
analyse:
18+
name: Call Ledger CodeQL analysis
19+
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_codeql_checks.yml@v1
20+
with:
21+
builder: ledger-app-builder
22+
secrets: inherit

.github/workflows/guidelines_enforcer.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ name: Ensure compliance with Ledger guidelines
1111
on:
1212
workflow_dispatch:
1313
push:
14+
pull_request:
1415
branches:
1516
- main
1617
- develop
17-
- master # for safety reasons
18-
- dev # for safety reasons
19-
pull_request:
18+
- master
19+
- dev
2020

2121
jobs:
2222
guidelines_enforcer:
23-
if: github.event.repository.private == false
2423
name: Call Ledger guidelines_enforcer
2524
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_guidelines_enforcer.yml@v1

.github/workflows/lint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint and format 💅
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
pull_request:
7+
branches:
8+
- main
9+
- develop
10+
- master
11+
- dev
12+
13+
jobs:
14+
ledger-lint:
15+
uses: Zondax/_workflows/.github/workflows/_ledger_lint.yml@v3
16+
with:
17+
runs-on: ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }}
18+
check_rust: true

0 commit comments

Comments
 (0)