chore: sync downstream (#10) #27
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/short-sha@v3.0 | |
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/checkout@v4.1.5 | |
- name: Build | |
run: | | |
make | |
- name: Upload app binary | |
uses: actions/upload-artifact@v4.3.3 | |
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/checkout@v4.1.5 | |
- name: Build | |
run: | | |
make BOLOS_SDK=$NANOSP_SDK | |
- name: Upload app binary | |
uses: actions/upload-artifact@v4.3.3 | |
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/checkout@v4.1.5 | |
- name: Build | |
run: | | |
make BOLOS_SDK=$NANOX_SDK | |
- name: Upload app binary | |
uses: actions/upload-artifact@v4.3.3 | |
with: | |
name: app-solar-nanox-${{ needs.prepare.outputs.sha7 }} | |
path: bin |