-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added new workflow to test updated nightly #119
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
09c07bb
added new workflow to test updated nightly
yogh333 4605366
add ragger tests after building
yogh333 27e95ac
fix typo in workflow
yogh333 6e65dd1
fix binary artifacts path
yogh333 381825e
add branch name
yogh333 8e311e2
do not test last nightly on PR
yogh333 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
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: ["nanos", "nanox", "nanosplus"] | ||
steps: | ||
- name: update nightly toolchain | ||
run: | | ||
rustup update nightly | ||
rustup default nightly | ||
rustup component add rust-src --toolchain nightly | ||
cargo 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 | ||
cargo ledger build ${{ matrix.device }} | ||
mkdir -p build/${BIN_DIR_NAME}/bin | ||
mv ./target/${BUILD_DEVICE_NAME}/release/app-boilerplate-rust ./build/${BIN_DIR_NAME}/bin/app.elf | ||
|
||
- name: Upload binary artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: "app_elf_binaries" | ||
path: app-boilerplate/build/* | ||
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" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You will need to run this in the dev-tools image (not the regular app-builder, it doesn't have Ragger nor Speculos)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall be fixed in reusable_ragger_tests flow as it uses
ubuntu-latest
nowadays.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird to use
ubuntu-latest
and then doin the reusable workflow... Maybe it's because we want to be closer to a real host environment ? 🤔
We wouldn't need the
Install tests dependencies
if we used the app-dev-toolsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see LedgerHQ/ledger-app-workflows#56, I do not know why an ubuntu env is used to run test (rather than our dev-tools container)...