mirror of
https://github.com/pseXperiments/icicle.git
synced 2026-01-09 21:17:56 -05:00
Updates the CI to: - run per supported language - conditional run logic - pipelined jobs for failing fast - additional parallelization - run golang build on windows - reuse the check-changed-files workflow
24 lines
547 B
PowerShell
24 lines
547 B
PowerShell
$G2_DEFINED = "OFF"
|
|
|
|
if ($args.Count -gt 1) {
|
|
$G2_DEFINED = "ON"
|
|
}
|
|
|
|
$BUILD_DIR = (Get-Location).Path + "\..\icicle\build"
|
|
$SUPPORTED_CURVES = @("bn254", "bls12_377", "bls12_381", "bw6_761")
|
|
|
|
if ($args[0] -eq "all") {
|
|
$BUILD_CURVES = $SUPPORTED_CURVES
|
|
} else {
|
|
$BUILD_CURVES = @($args[0])
|
|
}
|
|
|
|
Set-Location "../../icicle"
|
|
|
|
New-Item -ItemType Directory -Path "build" -Force
|
|
|
|
foreach ($CURVE in $BUILD_CURVES) {
|
|
cmake -DCURVE:STRING=$CURVE -DG2_DEFINED:STRING=$G2_DEFINED -DCMAKE_BUILD_TYPE:STRING=Release -S . -B build
|
|
cmake --build build
|
|
}
|