krdlab / setup-haxe

Set up a specific version of Haxe environment for your workflow.
MIT License
38 stars 9 forks source link

Having trouble with Haxe 3.4.7 on Windows #7

Closed joshtynjala closed 1 year ago

joshtynjala commented 4 years ago

Here's the raw log from my run:

2020-07-13T16:18:15.9256329Z ##[group]Run krdlab/setup-haxe@v1
2020-07-13T16:18:15.9256511Z with:
2020-07-13T16:18:15.9256636Z   haxe-version: 3.4.7
2020-07-13T16:18:15.9256750Z ##[endgroup]
2020-07-13T16:18:16.5019822Z [command]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 { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\c5943061-52d1-4cb4-841b-528842261ef8', 'neko-2.3.0-win64')"
2020-07-13T16:18:17.2920748Z [command]"C:\Program Files\Git\usr\bin\ls.exe" -1 neko-2.3.0-win64
2020-07-13T16:18:17.3433165Z neko-2.3.0-win64
2020-07-13T16:18:17.8418886Z [command]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 { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\747b5ffb-49db-4eec-8e98-15f0fee5e9f3', 'haxe-3.4.7-win64')"
2020-07-13T16:18:19.6222276Z [command]"C:\Program Files\Git\usr\bin\ls.exe" -1 haxe-3.4.7-win64
2020-07-13T16:18:19.6433041Z haxe_20180221160843_bb7b827a9
2020-07-13T16:18:27.0571683Z [command]C:\hostedtoolcache\windows\haxe\3.4.7\x64\haxelib.exe setup C:\hostedtoolcache\windows\haxe\3.4.7\x64\lib
2020-07-13T16:18:27.2005815Z ##[error]The process 'C:\hostedtoolcache\windows\haxe\3.4.7\x64\haxelib.exe' failed with exit code 3221225595

In particular, there's this error at the end:

The process 'C:\hostedtoolcache\windows\haxe\3.4.7\x64\haxelib.exe' failed with exit code 3221225595

Haxe 4.0.5 and 4.1.2 seem to be working correctly on Windows, so it's just a problem with 3.4.7, I guess.

ianharrigan commented 3 years ago

FYI, after a little messing around i managed to exclude just windows + 3.4.7 from my matrix with something along the lines of:

if: ${{ !(matrix.os == 'windows-latest' && matrix.haxe-version == '3.4.7') }}

Seems to work nicely, heres the full action for completeness:

name: Build (all platforms, all haxe versions)

on: [push, repository_dispatch]

jobs:
  build:
    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
        haxe-version: [3.4.7, 4.0.5, 4.1.5, 4.2.2]

    steps:
    - uses: actions/checkout@v1
    - name: Setup Haxe (haxe ${{ matrix.haxe-version }}, ${{ matrix.os }})
      if: ${{ !(matrix.os == 'windows-latest' && matrix.haxe-version == '3.4.7') }}
      uses: krdlab/setup-haxe@v1
      with:
        haxe-version: ${{ matrix.haxe-version }}

    - name: Build app (haxe ${{ matrix.haxe-version }}, ${{ matrix.os }})
      if: ${{ !(matrix.os == 'windows-latest' && matrix.haxe-version == '3.4.7') }}
      run: |
        git clone --branch master https://github.com/haxeui/haxeui-core.git --depth=1
        haxelib dev haxeui-core haxeui-core
        haxelib install build.hxml --always --quiet
        haxe build.hxml

EDIT:

there is a much cleaner way pointed out to me:

...
jobs:
  build:
    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
        haxe-version: [3.4.7, 4.0.5, 4.1.5, 4.2.2]
        exclude:  
          - os: windows-latest
            haxe-version: 3.4.7
...
sebthom commented 1 year ago

The problem is, that Haxe 3.x is not compatible with Neko 2.3, so the fix is to install Neko 2.1 for Haxe 3.x.

sebthom commented 1 year ago

@joshtynjala I think you can close this issue now :-)

joshtynjala commented 1 year ago

Great! Thanks.