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

Expand-Archive : is not a supported archive file format. .zip is the only supported archive file format. #52

Closed
gogoprog opened this issue Nov 15, 2024 · 1 comment

Comments

@gogoprog
Copy link

Hello,

I am trying to use this action on Windows and this is the result I have :

Run krdlab/setup-haxe@v1
  with:
    haxe-version: 4.2.5
  env:
    SSH_AUTH_SOCK: /tmp/ssh-hYwZzw9QdqYl/agent.1250
    SSH_AGENT_PID: 1251
Unexpected error attempting to determine if executable file exists 'C:\Users\build\AppData\Local\Microsoft\WindowsApps\pwsh.EXE': Error: EACCES: permission denied, stat 'C:\Users\build\AppData\Local\Microsoft\WindowsApps\pwsh.EXE'
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath 'E:\actions-runner\_work\_temp\4c4eac69-ef3e-4fa2-af4c-93b20b5ec55d' -DestinationPath 'neko-2.3.0-win64' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('E:\actions-runner\_work\_temp\4c4eac69-ef3e-4fa2-af4c-93b20b5ec55d', 'neko-2.3.0-win64', $true) }"
Expand-Archive :  is not a supported archive file format. .zip is the only supported archive file format.
At line:1 char:210
+ ...  Ignore)) { Expand-Archive -LiteralPath 'E:\actions-runner\_work\_tem ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:String) [Expand-Archive], IOException
    + FullyQualifiedErrorId : NotSupportedArchiveFileExtension,Expand-Archive
 
Error: The process 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' failed with exit code 1

Any idea?

@gogoprog gogoprog changed the title Expand-Archive : is not a supported archive file format. .zip is the only supported archive file format. pwsh.EXE': Error: EACCES: permission denied Nov 15, 2024
@gogoprog gogoprog changed the title pwsh.EXE': Error: EACCES: permission denied Expand-Archive : is not a supported archive file format. .zip is the only supported archive file format. Nov 15, 2024
@gogoprog
Copy link
Author

Found the solution : Install latest PowerShell (7.4.6) instead of using the Windows default one.

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

1 participant