fix: support allocator override
This commit is contained in:
@@ -24,9 +24,9 @@ fi
|
||||
|
||||
: > /work/alpine-results.tsv
|
||||
if [ -n "$features" ]; then
|
||||
cargo build --release --locked --features "$features"
|
||||
cargo build --no-default-features --release --locked --features "$features"
|
||||
else
|
||||
cargo build --release --locked
|
||||
cargo build --no-default-features --release --locked
|
||||
fi
|
||||
|
||||
output="$(/usr/bin/time -v /work/target/release/proxy-scraper-checker 2>&1 >/dev/null)"
|
||||
|
||||
@@ -30,7 +30,7 @@ if [[ -n "$features" ]]; then
|
||||
feature_args=(--features "$features")
|
||||
fi
|
||||
|
||||
cargo build --release --locked "${feature_args[@]}"
|
||||
cargo build --no-default-features --release --locked "${feature_args[@]}"
|
||||
|
||||
exe="target/release/proxy-scraper-checker"
|
||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||
|
||||
@@ -7,7 +7,7 @@ if ($allocator -ne "system") { $features += $allocator }
|
||||
if ($tokioFeature) { $features += $tokioFeature }
|
||||
$featuresString = $features -join ","
|
||||
|
||||
$args = @("build", "--release", "--locked")
|
||||
$args = @("build", "--no-default-features", "--release", "--locked")
|
||||
if ($featuresString) { $args += "--features"; $args += $featuresString }
|
||||
|
||||
Start-Process -FilePath "cargo" -ArgumentList $args -NoNewWindow -Wait
|
||||
|
||||
@@ -16,8 +16,11 @@ jobs:
|
||||
allocator:
|
||||
- system
|
||||
- jemalloc
|
||||
- jemalloc_override
|
||||
- mimalloc_v2
|
||||
- mimalloc_v2_override
|
||||
- mimalloc_v3
|
||||
- mimalloc_v3_override
|
||||
tokio_multi_thread: [true, false]
|
||||
platform:
|
||||
- ubuntu-24.04-arm
|
||||
@@ -56,8 +59,12 @@ jobs:
|
||||
exclude:
|
||||
- platform: windows-2025
|
||||
allocator: jemalloc
|
||||
- platform: windows-2025
|
||||
allocator: jemalloc_override
|
||||
- platform: windows-11-arm
|
||||
allocator: jemalloc
|
||||
- platform: windows-11-arm
|
||||
allocator: jemalloc_override
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user