diff options
| author | Andrei Horodniceanu <a.horodniceanu@proton.me> | 2024-09-03 23:14:58 +0300 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-09-12 23:19:57 -0400 |
| commit | 188869724ab76e1d573744395a55a910d95f8886 (patch) | |
| tree | f263a25b745b80bf9d336953e872a9cb9246891c /ci/run.ps1 | |
| parent | bb2adc06c0dfde48d1bdccbaa4b3f7782a017f60 (diff) | |
| download | meson-188869724ab76e1d573744395a55a910d95f8886.tar.gz | |
ci/run.ps1: Clean up D related code
Bump the version of the cidata archive and remove the code that tries
to setup dmd and the dub packages from run.ps1 as it doesn't work as
expected (builds for x86 instead of x86_64) and cidata should already
take care of them.
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
Diffstat (limited to 'ci/run.ps1')
| -rw-r--r-- | ci/run.ps1 | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/ci/run.ps1 b/ci/run.ps1 index 3fc06fdaf..d3fda2d8b 100644 --- a/ci/run.ps1 +++ b/ci/run.ps1 @@ -50,7 +50,7 @@ function DownloadFile([String] $Source, [String] $Destination) { if (($env:backend -eq 'ninja') -and ($env:arch -ne 'arm64')) { $dmd = $true } else { $dmd = $false } -DownloadFile -Source https://github.com/mesonbuild/cidata/releases/download/ci4/ci_data.zip -Destination $env:AGENT_WORKFOLDER\ci_data.zip +DownloadFile -Source https://github.com/mesonbuild/cidata/releases/download/ci5/ci_data.zip -Destination $env:AGENT_WORKFOLDER\ci_data.zip echo "Extracting ci_data.zip" Expand-Archive $env:AGENT_WORKFOLDER\ci_data.zip -DestinationPath $env:AGENT_WORKFOLDER\ci_data & "$env:AGENT_WORKFOLDER\ci_data\install.ps1" -Arch $env:arch -Compiler $env:compiler -Boost $true -DMD $dmd @@ -87,44 +87,6 @@ if ($env:backend -eq 'ninja') { MSBuild /version } -# This mirrors the D logic in cidata/build_win32.sh -if ($dmd) { - if ($Arch -eq "x64") { - $dmdArch = "x86_64" - } else { - $dmdArch = "x86_mscoff" - } - - $ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path - $env:Path = "$ScriptDir;$env:Path" - $dmd_bin = Join-Path $ScriptDir "dmd2\windows\bin" - $env:Path = $env:Path + ";" + $dmd_bin - - $i = 1 - while ($i -le 5) { - # Needed for d/11 dub to use the 'urld' library - dub run --yes dub-build-deep -- urld --arch=$dmdArch --compiler=dmd --build=debug - if ($LastExitCode -eq 0) { - break - } - - $i = $i + 1 - Start-Sleep -Seconds 2 - } - - $i = 1 - while ($i -le 5) { - # XXX: Sometimes (?) we need this older version when the whole testsuite is run - dub run --yes dub-build-deep -- urld@2.1.1 --arch=$dmdArch --compiler=dmd --build=debug - if ($LastExitCode -eq 0) { - break - } - - $i = $i + 1 - Start-Sleep -Seconds 2 - } -} - echo "" echo "Python version:" python --version |
