Skip to content

Commit 5be4bd1

Browse files
sense-Jofabiobaltieri
authored andcommitted
Add support for specifying the workspace manifest file name
Includes an additional scenario illustrating a custom manifest file name in the README file.
1 parent 15ff705 commit 5be4bd1

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,15 @@ the necessary modules for a West based [Zephyr workspace application][1].
6262
sdk-version: 0.16.3
6363
```
6464
65+
## Specify a custom west workspace manifest file name
66+
67+
```yaml
68+
- name: Setup Zephyr project
69+
uses: zephyrproject-rtos/zephyr-setup@v1
70+
with:
71+
app-path: app
72+
toolchains: arm-zephyr-eabi
73+
manifest-file-name: custom_west.yml
74+
```
75+
6576
[1]: https://docs.zephyrproject.org/latest/develop/application/index.html#zephyr-workspace-app

action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ description: Setup a Zephyr base project using west and downloading the Zephyr S
66

77
inputs:
88
app-path:
9-
description: Application code path, should contain a west.yml file
9+
description: |
10+
Application code path, should contain a west.yml file if "manifest-file-name" is not specified
1011
required: true
1112

13+
manifest-file-name:
14+
description: Name of the west workspace manifest file name in "app-path"
15+
required: false
16+
default: west.yml
17+
1218
sdk-version:
1319
description: Zephyr SDK version to use or "auto" to detect automatically
1420
required: false
@@ -54,7 +60,7 @@ runs:
5460
- name: Initialize
5561
shell: bash
5662
run: |
57-
west init -l ${{ inputs.app-path }}
63+
west init -l ${{ inputs.app-path }} --mf ${{ inputs.manifest-file-name }}
5864
west update -o=--depth=1 -n
5965
6066
- name: Environment setup

0 commit comments

Comments
 (0)