-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This builds the application using one of the Github workflows. Signed-off-by: David Brown <[email protected]>
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
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,44 @@ | ||
name: Build | ||
|
||
# Build the rust samples and tests using the current Zephyr. | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-22.04] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: zephyr-rust-lang | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Setup Zephyr project | ||
uses: zephyrproject-rtos/action-zephyr-setup@v1 | ||
with: | ||
app-path: zephyr-rust-lang | ||
toolchains: arm-zephyr-eabi | ||
# TODO: Also bring in riscv. | ||
|
||
- name: Build firmware | ||
working-directory: zephyr-rust-lang | ||
shell: bash | ||
run: | | ||
set -x | ||
pwd | ||
echo $ZEPHYR_BASE | ||
df -h | ||
cargo --version |