From 715a97a097b055dfe1f1110e9e0d67ff959c9b30 Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Tue, 20 Jun 2023 12:01:10 +0200 Subject: [PATCH] Add guidelines enforcer --- .github/workflows/guidelines_enforcer.yml | 23 +++++++++++++++++++++++ Makefile | 6 +++--- 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/guidelines_enforcer.yml diff --git a/.github/workflows/guidelines_enforcer.yml b/.github/workflows/guidelines_enforcer.yml new file mode 100644 index 00000000..fdaf9f27 --- /dev/null +++ b/.github/workflows/guidelines_enforcer.yml @@ -0,0 +1,23 @@ +name: Ensure compliance with Ledger guidelines + +# This workflow is mandatory in all applications +# It calls a reusable workflow guidelines_enforcer developed by Ledger's internal developer team. +# The successful completion of the reusable workflow is a mandatory step for an app to be available on the Ledger +# application store. +# +# More information on the guidelines can be found in the repository: +# LedgerHQ/ledger-app-workflows/ + +on: + workflow_dispatch: + push: + branches: + - master + - main + - develop + pull_request: + +jobs: + guidelines_enforcer: + name: Call Ledger guidelines_enforcer + uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_guidelines_enforcer.yml@v1 diff --git a/Makefile b/Makefile index 524c1490..d093cbe2 100644 --- a/Makefile +++ b/Makefile @@ -29,10 +29,10 @@ endif include $(BOLOS_SDK)/Makefile.defines APP_LOAD_PARAMS = --curve ed25519 -ifeq ($(TARGET_NAME),$(filter $(TARGET_NAME),TARGET_NANOX TARGET_STAX)) -APP_LOAD_PARAMS += --appFlags 0xa00 # APPLICATION_FLAG_LIBRARY + APPLICATION_FLAG_BOLOS_SETTINGS -else +ifeq ($(TARGET_NAME), TARGET_NANOS) APP_LOAD_PARAMS += --appFlags 0x800 # APPLICATION_FLAG_LIBRARY +else +APP_LOAD_PARAMS += --appFlags 0xa00 # APPLICATION_FLAG_LIBRARY + APPLICATION_FLAG_BOLOS_SETTINGS endif APP_LOAD_PARAMS += --path "44'/501'" APP_LOAD_PARAMS += $(COMMON_LOAD_PARAMS)