Skip to content

Commit c144b22

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 63f41d0 commit c144b22

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,16 @@ the necessary modules for a West based [Zephyr workspace application][1].
7373
manifest-file-name: custom_west.yml
7474
```
7575
76+
77+
## Skip installing OS level dependencies and Zephyr SDK
78+
79+
```yaml
80+
- name: Setup Zephyr project
81+
uses: zephyrproject-rtos/action-zephyr-setup@v1
82+
with:
83+
app-path: example-application
84+
toolchains: arm-zephyr-eabi
85+
skip-dependencies: true
86+
```
87+
7688
[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
@@ -163,7 +163,7 @@ runs:
163163
path: ${{ inputs.base-path }}/zephyr-sdk
164164
key: ${{ env.SDK_FILE }}-${{ inputs.toolchains }}
165165

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

0 commit comments

Comments
 (0)