build-windows.yml 770 B

123456789101112131415161718192021222324
  1. - name: Set ADD_REVISION=1 for non-release
  2. if: ${{ !startsWith(github.ref, 'refs/tags/') }}
  3. shell: pwsh
  4. run: echo "ADD_REVISION=1" >> $Env:GITHUB_ENV
  5. - name: Build Haxe
  6. shell: pwsh
  7. run: |
  8. Set-PSDebug -Trace 1
  9. # stop after any command returns an error
  10. $PSNativeCommandUseErrorActionPreference = $true
  11. $ErrorActionPreference = 'Stop'
  12. opam exec -- make -s -f Makefile.win -j"$env:NUMBER_OF_PROCESSORS" haxe
  13. opam exec -- make -s -f Makefile.win haxelib
  14. opam exec -- make -f Makefile.win echo_package_files package_bin package_installer_win package_choco
  15. cygcheck ./haxe.exe
  16. cygcheck ./haxelib.exe
  17. ls ./out
  18. - name: Upload artifact
  19. uses: actions/upload-artifact@v4
  20. with:
  21. name: win${{env.ARCH}}Binaries
  22. path: out