test-windows.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. - uses: actions/setup-node@v4
  2. with:
  3. node-version: 18.17.1
  4. # - name: Quick test
  5. # shell: pwsh
  6. # run: |
  7. # $DOWNLOADDIR="./win$($env:ARCH)Binaries"
  8. # new-item -Name $DOWNLOADDIR -ItemType directory
  9. # Invoke-WebRequest https://build.haxe.org/builds/haxe/$env:PLATFORM/haxe_latest.zip -OutFile $DOWNLOADDIR/haxe_bin.zip
  10. - name: Setup Haxe
  11. shell: pwsh
  12. run: |
  13. $DOWNLOADDIR="./win$($env:ARCH)Binaries"
  14. Expand-Archive $DOWNLOADDIR/*_bin.zip -DestinationPath $DOWNLOADDIR
  15. Set-PSDebug -Trace 1
  16. $HAXEPATH = Get-ChildItem $DOWNLOADDIR/haxe_*_* -Directory
  17. Write-Host "::add-path::$HAXEPATH"
  18. Write-Host "::set-env name=HAXELIB_ROOT::$HAXEPATH\lib"
  19. - name: Print Haxe version
  20. shell: pwsh
  21. run: haxe -version
  22. - name: "Make Python 3 be available as python3 in the cmdline"
  23. shell: pwsh
  24. run: |
  25. Set-PSDebug -Trace 1
  26. $pypath = python -c "import sys; print(sys.executable)"
  27. $py3path = $pypath.replace("python.exe","python3.exe")
  28. cmd /c mklink $py3path $pypath
  29. python3 -V
  30. - name: Install hererocks
  31. if: matrix.target == 'lua'
  32. shell: cmd
  33. run: |
  34. pip install hererocks
  35. hererocks lua53 -l5.3 -rlatest
  36. call lua53/bin/activate
  37. - name: Install wget
  38. if: matrix.target == 'flash'
  39. shell: cmd
  40. run: |
  41. choco install wget
  42. wget --version
  43. - name: Setup haxelib
  44. shell: pwsh
  45. run: |
  46. mkdir "$env:HAXELIB_ROOT"
  47. haxelib setup "$env:HAXELIB_ROOT"
  48. - name: Add msbuild to PATH (hl/c)
  49. uses: microsoft/setup-msbuild@v2
  50. with:
  51. msbuild-architecture: x64
  52. - name: Test
  53. shell: pwsh
  54. run: haxe RunCi.hxml -D include_legacy
  55. working-directory: ${{github.workspace}}/tests
  56. timeout-minutes: 20