Installer freezes in windows-2022 GitHub Action

Michele Locati michele@locati.it
Sun Oct 20 19:20:49 GMT 2024


Il giorno dom 20 ott 2024 alle ore 19:57 Jon Turney
<jon.turney@dronecode.org.uk> ha scritto:
> You might like to try the semi-official action [1]
> [1] https://github.com/cygwin/cygwin-install-action

Hi Jon,
thanks for the tip!

I tried it, with this GitHub Action step:

-
  name: Install Cygwin
  uses: cygwin/cygwin-install-action@v4
  timeout-minutes: 60
  with:
    packages: wget,file,make,unzip,dos2unix,mingw64-x86_64-gcc-core,mingw64-x86_64-gcc-g++,mingw64-x86_64-headers,mingw64-x86_64-runtime
    install-dir: C:\cygwin
    site: https://mirrors.kernel.org/sourceware/cygwin/
    add-to-path: false

I have had the following failure 2 out of 4 times (see [1]):

Program 'setup.exe' failed to run: The specified executable is not a
valid application for this OS platform.At
D:\a\_temp\72ae83d2-faf5-4c1c-8e08-6720647559b7.ps1:63 char:1
+ & C:\setup.exe $args | Out-Default
+ ~~~~~~~~~~~~~~~~~~~~.
At D:\a\_temp\72ae83d2-faf5-4c1c-8e08-6720647559b7.ps1:63 char:1
+ & C:\setup.exe $args | Out-Default
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [],
ParentContainsErrorRecordException
    + FullyQualifiedErrorId : NativeCommandFailed

So, it seems that semi-official action fails too, and not always
exactly like I experienced (but at least the step now fails
immediately with an error message, instead of freezing for hours).

[1] https://github.com/mlocati/gettext-iconv-windows/actions/runs/11428859634


More information about the Cygwin mailing list