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. #97

Closed
KironBikash opened this issue Nov 25, 2022 · 4 comments
Closed

Expand-Archive : is not a supported archive file format. #97

KironBikash opened this issue Nov 25, 2022 · 4 comments

Comments

@KironBikash
Copy link

KironBikash commented Nov 25, 2022

I am getting this error while trying to make a cmake update action. How can I get rid of it? in my YAML file I am using the following configurations. Thank you in advance.

env:
CONFIGURATION: Debug
jobs:
Build:
runs-on: [ self-hosted, Windows, Build ]
timeout-minutes: 30
strategy:
matrix:
TARGET: [ 'Windows' ]
MSVC_TOOLSET_VERSION:
- 14.00
- 14.16
- 14.29
- 14.30
- 14.31
- 14.32
steps:
- uses: actions/[email protected]
- uses: ilammy/[email protected]
with:
arch: x64
toolset: $ {{ matrix.MSVC_TOOLSET_VERSION }}
- uses: lukka/[email protected]
- uses: lukka/[email protected]
with:
configurePreset: $ {{ matrix.TARGET }}-${{ env.CONFIGURATION }}
buildPreset: $ {{ matrix.TARGET }}-${{ env.CONFIGURATION }}

Error:

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 'C:\actions-runner_work_temp\834f221e-b5a4-418c-aa96-71d4f1cbe900' -DestinationPath 'C:\actions-runner_work_temp-1001380349' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('C:\actions-runner_work_temp\834f221e-b5a4-418c-aa96-71d4f1cbe900', 'C:\actions-runner_work_temp-1001380349', $true) }"

48 Expand-Archive : is not a supported archive file format. The only supported archive file format is .zip.
49 At line:1 char:210
50 + ... Ignore)) { Expand-Archive -LiteralPath 'C:\actions-runner_work_tem ...
51 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52 + CategoryInfo : InvalidArgument: (:String) [Expand-Archive], IOException
53 + FullyQualifiedErrorId : NotSupportedArchiveFileExtension,Expand-Archive

@lukka
Copy link
Owner

lukka commented Dec 5, 2022

@KironBikash could you provide a link to the workflow that is reproducing the problem?

@lukka
Copy link
Owner

lukka commented Dec 24, 2022

@KironBikash let me know if this is still a problem!

@lukka lukka closed this as completed Dec 24, 2022
@derekcyruschow-catapult
Copy link

Potentially related to the issue fixed in actions/setup-python#916 when running on self-hosted Windows runners needing the .zip part of the filename to be explicitly stated?

@lukka
Copy link
Owner

lukka commented Oct 2, 2024

@derekcyruschow-catapult IIRC this problem was related to get-cmake, and it was reported here: lukka/get-cmake#91
and fixed here: lukka/get-cmake#92

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

3 participants