fix: support allocator override

This commit is contained in:
monosans
2026-05-03 16:36:31 +03:00
parent f2424321a9
commit d31632b3f7
8 changed files with 37 additions and 26 deletions
+2 -2
View File
@@ -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)"
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+7
View File
@@ -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: