test-windows.yml 1.4 KB

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