Skip to content

Commit 650bc53

Browse files
readme: add example of skipping OS dependencies
Add example of how to configure action to skip installing OS level dependencies and Zephyr SDK Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent c995f36 commit 650bc53

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,15 @@ the necessary modules for a West based [Zephyr workspace application][1].
7373
manifest-file-name: custom_west.yml
7474
```
7575
76+
## Skip installing OS level dependencies and Zephyr SDK
77+
78+
```yaml
79+
- name: Setup Zephyr project
80+
uses: zephyrproject-rtos/action-zephyr-setup@v1
81+
with:
82+
app-path: example-application
83+
toolchains: arm-zephyr-eabi
84+
skip-dependencies: true
85+
```
86+
7687
[1]: https://docs.zephyrproject.org/latest/develop/application/index.html#zephyr-workspace-app

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ runs:
162162
path: ${{ inputs.base-path }}/zephyr-sdk
163163
key: ${{ env.SDK_FILE }}-${{ inputs.toolchains }}
164164

165-
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
165+
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' && inputs.skip-dependencies != 'true' }}
166166
working-directory: ${{ inputs.base-path }}
167167
name: Download Zephyr SDK
168168
shell: bash

0 commit comments

Comments
 (0)