-
Notifications
You must be signed in to change notification settings - Fork 32
action: permit skipping dependency installation #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,13 @@ inputs: | |
| required: false | ||
| default: https://github.com/zephyrproject-rtos/sdk-ng/releases/download | ||
|
|
||
| skip-dependencies: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think 'skip-dependencies' is a bit too generic here, what dependencies exactly? we are talking about packages here, so maybe it should be explicit. Maybe we could use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What defining
The default value would then be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nashif what are your thoughts on this suggestion? Would that make sense to get this moved forwards? |
||
| description: | | ||
| Set to 'true' to skip installation of SDK and OS dependencies. Useful | ||
| when running action within a container | ||
| required: false | ||
| default: 'false' | ||
|
|
||
| toolchains: | ||
| description: List of toolchains to install, colon separated | ||
| required: false | ||
|
|
@@ -53,6 +60,7 @@ runs: | |
| using: "composite" | ||
| steps: | ||
| - name: Install dependencies | ||
| if: ${{ inputs.skip-dependencies != 'true' }} | ||
| shell: bash | ||
| run: | | ||
| if [ "${{ runner.os }}" = "Windows" ]; then | ||
|
|
@@ -163,13 +171,14 @@ runs: | |
| west packages pip --install --ignore-venv-check || pip3 install -r zephyr/scripts/requirements.txt | ||
|
|
||
| - name: Cache Zephyr SDK | ||
| if: ${{ inputs.skip-dependencies != 'true' }} | ||
| id: cache-toolchain | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ${{ inputs.base-path }}/zephyr-sdk | ||
| key: ${{ env.SDK_FILE }}-${{ inputs.toolchains }} | ||
|
|
||
| - if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }} | ||
| - if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' && inputs.skip-dependencies != 'true' }} | ||
fabiobaltieri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| working-directory: ${{ inputs.base-path }} | ||
| name: Download Zephyr SDK | ||
| shell: bash | ||
|
|
@@ -184,6 +193,7 @@ runs: | |
| fi | ||
|
|
||
| - name: Setup Zephyr SDK | ||
| if: ${{ inputs.skip-dependencies != 'true' }} | ||
| working-directory: ${{ inputs.base-path }}/zephyr-sdk | ||
| shell: bash | ||
| run: | | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.