trond-snekvik / action-zephyr-setup

GitHub Action to set up Zephyr build environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

action-setup-zephyr (experimental)

This action initializes a Zephyr based project, downloading the Zephyr SDK and the necessary modules for a West based Zephyr workspace application.

Basic usage

- name: Setup Zephyr project
  uses: zephyrproject-rtos/zephyr-setup@main
  with:
    app-path: example-application
    toolchains: arm-zephyr-eabi

Scenarios

Application and west.yml in an "app" subdirectory

- name: Checkout
  uses: actions/checkout@v3

- name: Setup Zephyr project
  uses: zephyrproject-rtos/zephyr-setup@main
  with:
    app-path: app
    toolchains: arm-zephyr-eabi

- name: Build
  run: |
    west build app

Application and west.yml at the root of the repository

- name: Checkout
  uses: actions/checkout@v3
  with:
    path: app

- name: Setup Zephyr project
  uses: zephyrproject-rtos/zephyr-setup@main
  with:
    app-path: app
    toolchains: arm-zephyr-eabi

- name: Build
  run: |
    west build app

Use a specific SDK version and multiple compilers

- name: Setup Zephyr project
  uses: zephyrproject-rtos/zephyr-setup@main
  with:
    app-path: app
    toolchains: arm-zephyr-eabi:riscv64-zephyr-elf
    sdk-version: 0.16.3

About

GitHub Action to set up Zephyr build environment

License:Apache License 2.0