Skip to content

Commit c28bfb2

Browse files
committed
workflow: Create basic build
This builds the application using one of the Github workflows. Signed-off-by: David Brown <[email protected]>
1 parent 07c6e41 commit c28bfb2

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
3+
# Build the rust samples and tests using the current Zephyr.
4+
5+
on:
6+
push:
7+
pull_request:
8+
schedule:
9+
- cron: "0 0 * * *"
10+
11+
jobs:
12+
build:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-22.04]
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
path: zephyr-rust-lang
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: 3.11
28+
29+
- name: Setup Zephyr project
30+
uses: zephyrproject-rtos/action-zephyr-setup@v1
31+
with:
32+
app-path: zephyr-rust-lang
33+
toolchains: arm-zephyr-eabi
34+
# TODO: Also bring in riscv.
35+
36+
- name: Build firmware
37+
working-directory: zephyr-rust-lang
38+
shell: bash
39+
run: |
40+
set -x
41+
pwd
42+
echo $ZEPHYR_BASE
43+
df -h
44+
cargo --version

0 commit comments

Comments
 (0)