Skip to content

UNOFFICIAL GIT REPOSITORY FORK from the Zephyr Project. GitHub Action to set up Zephyr build environment

License

Notifications You must be signed in to change notification settings

tiacsys/zephyr-setup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

action-setup-zephyr

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/action-zephyr-setup@v1
  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/action-zephyr-setup@v1
  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/action-zephyr-setup@v1
  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/action-zephyr-setup@v1
  with:
    app-path: app
    toolchains: arm-zephyr-eabi:riscv64-zephyr-elf
    sdk-version: 0.16.3

Specify a custom west workspace manifest file name

- name: Setup Zephyr project
  uses: zephyrproject-rtos/zephyr-setup@v1
  with:
    app-path: app
    toolchains: arm-zephyr-eabi
    manifest-file-name: custom_west.yml

Filter west groups and projects

- name: Setup Zephyr project
  uses: zephyrproject-rtos/zephyr-setup@v1
  with:
    app-path: app
    toolchains: arm-zephyr-eabi
    west-group-filter: -hal,-tools,-bootloader,-babblesim
    west-project-filter: -nrf_hw_models

Specify a west version

- name: Setup Zephyr project
  uses: zephyrproject-rtos/zephyr-setup@v1
  with:
    app-path: app
    toolchains: arm-zephyr-eabi
    west-version: 1.3.0

About

UNOFFICIAL GIT REPOSITORY FORK from the Zephyr Project. GitHub Action to set up Zephyr build environment

Resources

License

Stars

Watchers

Forks

Packages

No packages published