Skip to content

Commit

Permalink
Updated CI to work with newer app builder image
Browse files Browse the repository at this point in the history
  • Loading branch information
apaillier-ledger authored and tjoly-ledger committed Feb 2, 2023
1 parent 2ce1f5e commit 9b86e72
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ jobs:
runs-on: ubuntu-latest

container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Build with Clang Static Analyzer
run: |
make clean
scan-build --use-cc=clang -analyze-headers -enable-checker security -enable-checker unix -enable-checker valist -o scan-build --status-bugs make default
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: failure()
with:
name: scan-build
Expand All @@ -29,33 +28,33 @@ jobs:
runs-on: ubuntu-latest

container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build Nano S app
run: |
make DEBUG=1
- name: Upload app binary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: app-debug-nanos
path: bin

- name: Cleanup the repository
run: |
git config --global --add safe.directory /__w/app-xrp/app-xrp
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git clean -dxf
- name: Build Nano X app
run: |
make DEBUG=1 BOLOS_SDK=$NANOX_SDK
- name: Upload app binary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: app-debug-nanox
path: bin
Expand All @@ -65,16 +64,15 @@ jobs:
runs-on: ubuntu-latest

container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install dependencies
run: |
apt-get update -q
apt-get install -qy libssl-dev
apk add openssl3-dev
- name: Build unit tests
run: |
Expand All @@ -95,7 +93,7 @@ jobs:

steps:
- name: Clone
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand All @@ -104,13 +102,13 @@ jobs:
apt-get install -qy netcat
- name: Download Nano S app binary
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: app-debug-nanos
path: bin-nanos

- name: Download Nano X app binary
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: app-debug-nanox
path: bin-nanox
Expand All @@ -129,7 +127,7 @@ jobs:
pytest tests/
- name: Upload speculos log
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: speculos-nanos-log
Expand All @@ -153,7 +151,7 @@ jobs:
pytest tests/
- name: Upload speculos log
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: speculos-nanox-log
Expand Down

0 comments on commit 9b86e72

Please sign in to comment.