Skip to content

Commit

Permalink
Added GHA for building for Zephyr native_sim.
Browse files Browse the repository at this point in the history
Signed-off-by: Naresh Nayak <Naresh.Nayak@de.bosch.com>
  • Loading branch information
nayakned authored and SebastianSchildt committed Feb 4, 2025
1 parent 4972758 commit a4196c9
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-zephyr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Open1722 Apps for Zephyr

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
acf-can-bridge:
runs-on: ubuntu-latest
name: Build acf-can-bridge for Zephyr
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create West Workspace Directory
run: mkdir west-ws && cp examples/acf-can/zephyr/west.yml west-ws/

- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: .
base-path: west-ws
toolchains: arm-zephyr-eabi

- name: Build
run: |
west build -b native_sim . -- -DCONF_FILE=examples/acf-can/zephyr/prj.conf -DOPEN1722_ZEPHYR_APP=acf-can-bridge -DDTC_OVERLAY_FILE=examples/acf-can/zephyr/boards/native_sim.overlay
12 changes: 12 additions & 0 deletions examples/acf-can/zephyr/west.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
manifest:
remotes:
- name: zephyrproject-rtos
url-base: https://github.com/zephyrproject-rtos
projects:
- name: zephyr
remote: zephyrproject-rtos
revision: main
path: zephyr
import: true
self:
path: .

0 comments on commit a4196c9

Please sign in to comment.