Skip to content

Windows runner: Expand-Archive error – downloaded archive is not a supported .zip file #195

@quvion

Description

@quvion

Hello GraalVM team,

I encountered an error when using graalvm/setup-graalvm@v1 on a Windows GitHub Actions runner (self hostet on windows 11 - same problem arises on Windows 10). The action fails during the archive extraction step with the following message:

Expand-Archive : '' ist kein unterstütztes Archivdateiformat.
'.zip' ist das einzige unterstützte Archivdateiformat.
Error: The process 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe' failed with exit code 1

This indicates that the downloaded GraalVM archive is either:
1. not a .zip file,
2. corrupted, or
3. not detected correctly by the archive extraction logic of the action.

Image

Environment
• GitHub Action runner: windows-latest
• Action version: graalvm/setup-graalvm@v1
• Configuration:

         build-native-windows-and-installer:
          runs-on: self-hosted

         - name: Set up GraalVM for Native Image
            uses: graalvm/setup-graalvm@v1
             with:
                 java-version: '25'
                 distribution: 'graalvm'

Full Log Excerpt
Expand-Archive : '' ist kein unterstütztes Archivdateiformat. '.zip' ist das einzige unterstützte Archivdateiformat.
In Zeile:1 Zeichen:210

  • ... Ignore)) { Expand-Archive –LiteralPath 'C:\actions-runner_work_tem ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
  • CategoryInfo : InvalidArgument: (:String) [Expand-Archive], IOException
  • FullyQualifiedErrorId : NotSupportedArchiveFileExtension,Expand-Archive

Expected Behavior

The GraalVM archive should download as a valid .zip file and extract successfully on Windows.

Actual Behavior

The action fails during extraction because the downloaded artifact is not recognized as a valid ZIP archive.

Please let me know if you need further logs or artifacts.
Thank you for maintaining the GraalVM setup action.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions