Skip to content

Conversation

@ryuapp
Copy link

@ryuapp ryuapp commented Nov 14, 2025

setup-deno doesn't allow us to determine the platform target to download, so this PR add the target option to allow it.

Deno doesn't officially support Windows Arm now, but Windows Arm has some compatibility with x64, so it will work(not perfect).
I use Deno as a formatter and task runner, so I'm hoping this supports it.

@ryuapp ryuapp requested a review from lucacasonato as a code owner November 14, 2025 17:52
README.md Outdated
Comment on lines 145 to 153
### Determining the target platform

You can determine the target platform of Deno.

```yaml
- uses: denoland/setup-deno@v2
with:
target: x86_64-pc-windows-msvc
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put this further down, and explain what this is for.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add b557a7e

src/install.ts Outdated
await fs.rename(
path.join(
extractedFolder,
process.platform === "win32" ? "deno.exe" : "deno",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work if you are downloading linux on windows, or windows on linux etc.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix 221053e

CI is failing, but the name of the rc binary seems to be strange.
expcted: deno.exe
actual: deno-x86_64-pc-windows-msvc-rc.exe

@ryuapp
Copy link
Author

ryuapp commented Nov 21, 2025

It seems Deno on npm is distributing a Windows x64 version as ARM.
https://www.npmjs.com/package/@deno/win32-arm64

Is it possible to install Deno x64 on Windows Arm in the same way using setup-deno?
If possible, this option will no longer be necessary.

@bartlomieju
Copy link
Member

Hey @ryuapp - this particular package is the regular Windows build that is run in emulation mode - we will try to look into actual arm builds later this year. So for all intents and purposes for now you can install Windows x86_64 version on ARM for the time being.

@ryuapp
Copy link
Author

ryuapp commented Dec 3, 2025

Thanks for your reply.

we will try to look into actual arm builds later this year.

I will run npm i -g deno instead on CI until this is achieved, but if implementing the Arm build will take a long time, I would appreciate it if there was a workaround in setup-deno, such as this PR.

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

Successfully merging this pull request may close these issues.

3 participants