This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable criterion to avoid dependency issue (#1161)
* Disable criterion to avoid dependency issue Since we build with a specific pinned version of Rust but do not check in a Cargo.lock, we have contradictions in our toolchain and our dependencies. For now, we avoid this issue by skipping the benchmarks that depend on criterion. * don't use cargo edit
- Loading branch information
Showing
3 changed files
with
33 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,42 +6,44 @@ | |
$ErrorActionPreference = 'Stop' | ||
|
||
Push-Location (Join-Path $PSScriptRoot "build") | ||
.\prerequisites.ps1 | ||
.\prerequisites.ps1 | ||
Pop-Location | ||
|
||
cargo install cargo-edit@0.11.0 | ||
Push-Location (Join-Path $PSScriptRoot "./src/Simulation/qdk_sim_rs") | ||
cargo set-version $Env:NUGET_VERSION; | ||
Pop-Location | ||
# cargo install [email protected] | ||
# Push-Location (Join-Path $PSScriptRoot "./src/Simulation/qdk_sim_rs") | ||
# cargo set-version $Env:NUGET_VERSION; | ||
# Pop-Location | ||
|
||
if (-not (Test-Path Env:/AGENT_OS)) { # If not CI build, i.e. local build (if AGENT_OS envvar is not defined) | ||
if (-not (Test-Path Env:/AGENT_OS)) { | ||
# If not CI build, i.e. local build (if AGENT_OS envvar is not defined) | ||
if ($Env:ENABLE_QIRRUNTIME -ne "false") { | ||
Write-Host "Build release flavor of the QIR standard library" | ||
$Env:BUILD_CONFIGURATION = "Release" | ||
Push-Location (Join-Path $PSScriptRoot "src/Qir/Runtime") | ||
.\build-qir-stdlib.ps1 | ||
.\build-qir-stdlib.ps1 | ||
Pop-Location | ||
$Env:BUILD_CONFIGURATION = $null | ||
} | ||
if ($Env:ENABLE_NATIVE -ne "false") { | ||
$Env:BUILD_CONFIGURATION = "Release" | ||
Write-Host "Build release flavor of the full state simulator" | ||
Push-Location (Join-Path $PSScriptRoot "src/Simulation/Native") | ||
.\build-native-simulator.ps1 | ||
.\build-native-simulator.ps1 | ||
Pop-Location | ||
|
||
Write-Host "Build release flavor of the Sparse Simulator" | ||
& (Join-Path $PSScriptRoot "src" "Simulation" "NativeSparseSimulator" "build.ps1") | ||
|
||
Push-Location (Join-Path $PSScriptRoot "src" "Simulation" "qdk_sim_rs") | ||
# Don't run the experimental simulator build if we're local | ||
# and prerequisites are missing. | ||
$IsCI = "$Env:TF_BUILD" -ne "" -or "$Env:CI" -eq "true"; | ||
if ((Get-Command cargo -ErrorAction SilentlyContinue) -or $IsCI) { | ||
.\build-qdk-sim-rs.ps1 | ||
} else { | ||
Write-Verbose "cargo was not installed, skipping qdk_sim_rs build."; | ||
} | ||
# Don't run the experimental simulator build if we're local | ||
# and prerequisites are missing. | ||
$IsCI = "$Env:TF_BUILD" -ne "" -or "$Env:CI" -eq "true"; | ||
if ((Get-Command cargo -ErrorAction SilentlyContinue) -or $IsCI) { | ||
.\build-qdk-sim-rs.ps1 | ||
} | ||
else { | ||
Write-Verbose "cargo was not installed, skipping qdk_sim_rs build."; | ||
} | ||
Pop-Location | ||
$Env:BUILD_CONFIGURATION = $null | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters