Skip to content
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

Multiple workflow using different "toolchains" values can fail #17

Open
d3zd3z opened this issue Sep 12, 2024 · 1 comment
Open

Multiple workflow using different "toolchains" values can fail #17

d3zd3z opened this issue Sep 12, 2024 · 1 comment

Comments

@d3zd3z
Copy link

d3zd3z commented Sep 12, 2024

In my rust-lang-zephyr project, I have two workflows, both of which use action-zephyr-setup. The main build, uses a toolchains: with two listed, and the docgen just installs one toolchain. However, when the doc runs, with the second toolchains, it fails with a mkdir zephyr-sdk already exists error. I think the problem is that the cache is still being used, but later code decides it needs to be installed because the toolchains are different, and fails since the directory is already there.

Unfortunately, this is kind of difficult to reproduce. I'll add a link to a failure if I'm able to recreated it.

@fabiobaltieri
Copy link
Member

fabiobaltieri commented Sep 13, 2024

@d3zd3z do you have something we could look at? The SDK should be able to handle an existing zephyr-sdk directory and install the missing ones, but also the SDK cache is keyed on the toolchain spec so it should not really be an issue (https://github.com/zephyrproject-rtos/action-zephyr-setup/blob/main/action.yml#L136-L141).

Somewhat unrelated, have you renamed the repository? I know that that can cause issues, although not as you described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants