test: update ci workflows and tests #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compilation of build artifacts | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
prepare: | |
name: Prepare commit hash | |
runs-on: ubuntu-latest | |
steps: | |
- name: Parse short sha | |
uses: benjlevesque/[email protected] | |
id: short-sha | |
with: | |
length: 7 | |
outputs: | |
sha7: ${{ steps.short-sha.outputs.sha }} | |
job_nanos_build: | |
name: Build for the Nano S | |
runs-on: ubuntu-latest | |
needs: prepare | |
container: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:3.22.1 | |
steps: | |
- name: Clone | |
uses: actions/[email protected] | |
- name: Build | |
run: | | |
make | |
- name: Upload app binary | |
uses: actions/[email protected] | |
with: | |
name: app-solar-nanos-${{ needs.prepare.outputs.sha7 }} | |
path: bin | |
job_nanosp_build: | |
name: Build for the Nano S Plus | |
runs-on: ubuntu-latest | |
needs: prepare | |
container: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:3.22.1 | |
steps: | |
- name: Clone | |
uses: actions/[email protected] | |
- name: Build | |
run: | | |
make BOLOS_SDK=$NANOSP_SDK | |
- name: Upload app binary | |
uses: actions/[email protected] | |
with: | |
name: app-solar-nanosp-${{ needs.prepare.outputs.sha7 }} | |
path: bin | |
job_nanox_build: | |
name: Build for the Nano X | |
runs-on: ubuntu-latest | |
needs: prepare | |
container: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:3.22.1 | |
steps: | |
- name: Clone | |
uses: actions/[email protected] | |
- name: Build | |
run: | | |
make BOLOS_SDK=$NANOX_SDK | |
- name: Upload app binary | |
uses: actions/[email protected] | |
with: | |
name: app-solar-nanox-${{ needs.prepare.outputs.sha7 }} | |
path: bin |