[CI] Compiling binaries with specific flags
This commit is contained in:
48
.github/workflows/ci-workflow.yml
vendored
48
.github/workflows/ci-workflow.yml
vendored
@@ -1,6 +1,7 @@
|
|||||||
name: Compilation & tests
|
name: Compilation & tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@@ -103,8 +104,27 @@ jobs:
|
|||||||
name: scan-build
|
name: scan-build
|
||||||
path: scan-build
|
path: scan-build
|
||||||
|
|
||||||
|
building_for_e2e_tests:
|
||||||
|
name: Building binaries for E2E tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build testing binaries
|
||||||
|
run: cd tests && ./build_local_test_elfs.sh
|
||||||
|
|
||||||
|
- name: Upload app binaries
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: e2e_elfs
|
||||||
|
path: ./tests/elfs/
|
||||||
|
|
||||||
jobs-e2e-tests:
|
jobs-e2e-tests:
|
||||||
needs: [job_build_debug_nano_s, job_build_debug_nano_x]
|
name: E2E tests
|
||||||
|
needs: [building_for_e2e_tests]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Test
|
- name: Test
|
||||||
@@ -114,28 +134,30 @@ jobs:
|
|||||||
echo $DISPLAY
|
echo $DISPLAY
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
|
- run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
|
||||||
|
|
||||||
- name: Install node
|
- name: Install node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "14.4.0"
|
node-version: "14.4.0"
|
||||||
|
|
||||||
- name: Install yarn
|
- name: Install yarn
|
||||||
run: |
|
run: npm install -g yarn
|
||||||
npm install -g yarn
|
|
||||||
- name: Build/Install build js deps
|
- name: Build/Install build js deps
|
||||||
run: |
|
run: cd tests && yarn install
|
||||||
cd tests && yarn install
|
|
||||||
- name: Create tmp folder for artifacts
|
- name: Create tmp folder for artifacts
|
||||||
run: |
|
run: mkdir tests/elfs
|
||||||
mkdir tests/elfs
|
|
||||||
- name: Download app binaries
|
- name: Download app binaries
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
path: tests/elfs
|
path: tmp/
|
||||||
|
|
||||||
- name: Gather elfs
|
- name: Gather elfs
|
||||||
run: |
|
run: cp `find tmp/e2e_elfs/ -name "*.elf"` tests/elfs/
|
||||||
cd tests/elfs
|
|
||||||
cp `find . -name "*.elf"` .
|
|
||||||
- name: Run zemu tests
|
- name: Run zemu tests
|
||||||
run: |
|
run: cd tests && yarn test
|
||||||
cd tests && yarn test
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
TESTS_FULL_PATH=$(dirname "$(realpath "$0")")
|
TESTS_FULL_PATH=$(dirname "$(realpath "$0")")
|
||||||
|
|
||||||
# FILL THESE WITH YOUR OWN SDKs PATHS
|
# FILL THESE WITH YOUR OWN SDKs PATHS
|
||||||
|
|||||||
Reference in New Issue
Block a user