-
Notifications
You must be signed in to change notification settings - Fork 4
80 lines (66 loc) · 1.7 KB
/
ci-workflow.yml
File metadata and controls
80 lines (66 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Compilation & tests
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
job_nano_build:
name: Build plugin
strategy:
matrix:
include:
- SDK: "$NANOS_SDK"
name: nanos
- SDK: "$NANOX_SDK"
name: nanox
- SDK: "$NANOSP_SDK"
name: nanosp
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
steps:
- name: Clone
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build
run: |
make BOLOS_SDK=${{ matrix.SDK }}
mv bin/app.elf plugin_${{ matrix.name }}.elf
- name: Upload
uses: actions/upload-artifact@v2
with:
name: alkemi_${{ matrix.name }}_plugin
path: ./*.elf
job-e2e-tests:
name: E2E tests for NanoS, X and S+
needs: [job_nano_build]
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v2
- name: Install APT dependencies
run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "14.15.0"
- name: Install yarn
run: |
npm install -g yarn
- name: Install JS dependencies
run: |
cd tests && yarn install
- name: Download app binary
uses: actions/download-artifact@v2
- name: Gather all artifacts
run: |
mv *_plugin/*.elf tests/elfs
- name: Run zemu tests
run: |
cd tests && yarn test