Skip to content

Add Flex support

Add Flex support #177

Workflow file for this run

name: CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# build_application:
# name: Build application using the reusable workflow
# uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
# with:
# upload_app_binaries_artifact: "compiled_app_binaries"
build:
name: Build application for NanoS, X, S+, and Stax
strategy:
fail-fast: false
matrix:
device: ["nanos", "nanox", "nanosp", "stax", "flex"]
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build application in developer + headless mode
id: "build"
shell: bash
run: |
eval "BOLOS_SDK=\$$(echo ${{ matrix.device }} | tr [:lower:] [:upper:])_SDK" && \
echo "BOLOS_SDK value will be: ${BOLOS_SDK}" && \
BOLOS_SDK=${BOLOS_SDK} DEFINES+=HEADLESS DEVEL=1 make
# echo "binary_path=./build/*" >> $GITHUB_OUTPUT
echo "Build complete"
# - name: Upload app binary
# uses: actions/upload-artifact@v4
# with:
# name: binaries-${{ matrix.device }}
# path: ${{ steps.build.outputs.binary_path }}
# if-no-files-found: error
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: node
- name : Install yarn
run: npm install --global yarn
- name: Install Cardano JS Library
run: git clone https://github.com/vacuumlabs/ledgerjs-cardano-shelley.git
- name : Run tests
run: |
speculos --model ${{ matrix.device }} build/${{ matrix.device }}/bin/app.elf &
cd ledgerjs-cardano-shelley
yarn install
yarn test-speculos