-
Notifications
You must be signed in to change notification settings - Fork 31
52 lines (46 loc) · 1.6 KB
/
build_with_current_nightly.yml
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
name: Build and Test with last nightly everyday @12PM
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 12 * * *'
jobs:
build_with_last_nightly:
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
strategy:
matrix:
device: ["nanox", "nanosplus", "stax", "flex"]
steps:
- name: update nightly toolchain
run: |
rustup update nightly
rustup component add rust-src --toolchain nightly
cargo +nightly ledger setup
- name: Checkout Code
uses: actions/checkout@v4
with:
repository: LedgerHQ/app-boilerplate-rust
path: app-boilerplate
- name: Build
run: |
BUILD_DEVICE_NAME="$(echo ${{ matrix.device }})"
BIN_DIR_NAME="$(echo ${{ matrix.device }} | sed 's/nanosplus/nanos2/')"
cd app-boilerplate
RUST_NIGHTLY=nightly
cargo ledger build ${{ matrix.device }}
#- name: Upload binary artifacts
# uses: actions/upload-artifact@v3
# with:
# name: "app_elf_binaries"
# path: app-boilerplate/target/*
# if-no-files-found: error
#ragger_tests:
# name: Run ragger tests using the reusable workflow
# needs: build_with_last_nightly
# uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
# with:
# app_repository: LedgerHQ/app-boilerplate-rust
# app_branch_name: "main"
# download_app_binaries_artifact: "app_elf_binaries"