mirror of
https://github.com/enso-org/enso.git
synced 2024-11-23 16:18:23 +03:00
483028dbb0
This PR updates the build script: * fixed issue where program version check was not properly triggering; * improved `git-clean` command to correctly clear Scala artifacts; * added `run.ps1` wrapper to the build script that works better with PowerShell than `run.cmd`; * increased timeouts to work around failures on macOS nightly builds; * replaced depracated GitHub Actions APIs (set-output) with their new equivalents; * workaround for issue with electron builder (python2 lookup) on newer macOS runner images; * GUI and backend dispatches to cloud were completed; * release workflow allows creating RC releases.
21 lines
867 B
PowerShell
21 lines
867 B
PowerShell
# Build script driver for the PowerShell.
|
|
#
|
|
# Having it in addition to CMD script allows better experience in some cases,
|
|
# like interrupting the build with Ctrl+C.
|
|
#
|
|
# This was developed and tested on Windows only, though there is no reason
|
|
# why it should not work on other platforms through PowerShell Core.
|
|
$ErrorActionPreference = "Stop"
|
|
$TargetDir = Join-Path $PSScriptRoot "target" "enso-build"
|
|
$BuildScriptProfile = "buildscript"
|
|
$BuildScriptBin = "enso-build-cli"
|
|
|
|
$TargetExe = Join-Path $TargetDir $BuildScriptProfile $BuildScriptBin
|
|
|
|
$BuildArgs = "build", "--profile", $BuildScriptProfile, "--target-dir", $TargetDir, "--package", $BuildScriptBin
|
|
Set-Location $PSScriptRoot
|
|
Start-Process cargo -NoNewWindow -Wait -ArgumentList $BuildArgs
|
|
if (!$?) { Exit $LASTEXITCODE }
|
|
Start-Process $TargetExe -NoNewWindow -Wait -ArgumentList $args
|
|
Exit $LASTEXITCODE
|