Skip to content

add workflow to build all Rust apps for every PR #25

add workflow to build all Rust apps for every PR

add workflow to build all Rust apps for every PR #25

Workflow file for this run

name: Build all Rust apps
on:
workflow_dispatch:
inputs:
sdk_branch:
type: string
required: false
default: ''
pull_request:
jobs:
test-build:
name: Build for all targets
strategy:
fail-fast: false
matrix:
include:
- repo: 'app-mobilecoin'
branch: 'develop'
build_path: './fw'
device: nanosplus
- repo: 'app-radix-babylon'
branch: 'develop'
build_path: './'
device: nanos nanox nanosplus
- repo: 'app-boilerplate-rust'
branch: 'main'
build_path: './'
device: nanos nanox nanosplus
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
steps:
- name: Clone App
uses: actions/checkout@v4
with:
repository: LedgerHQ/${{ matrix.repo }}
submodules: true
ref: ${{ matrix.branch }}
path: ${{ matrix.repo }}-${{ matrix.branch }}
- name: Build Path and Targets
run: |
cd ${{ matrix.repo }}-${{ matrix.branch }}
for device in ${{ matrix.device }}; do
cd ${{ matrix.build_path }}
echo "Build for"
echo $device
done