Raise build parallelism for the 44-core CI host [CI]
This commit is contained in:
1 parent
93ecc53cd0
commit
099c34c715
2 files changed
+3
-3
No files matched your search
@@ -49,8 +49,8 @@ commit_epoch="$(git -C "$root" show -s --format=%ct "$CI_COMMIT_SHA")"
|
||||
built_at="$(date -u -d "@$commit_epoch" +%Y-%m-%dT%H:%M:%SZ)"
|
||||
python3 "$root/ci/stage-node-image.py" agent "$rid" "$context"
|
||||
local_image="localhost/moshiro-agent-binaries:$rid"
|
||||
# 一次只放 MOSHIRO_AOT_SLOTS 个 NativeAOT 编译进来(见 ci/with-aot-slot.sh);一个 RID 内 Agent 和注册工具依次编,--jobs 1
|
||||
bash "$root/ci/with-aot-slot.sh" python3 "$root/ci/run-with-timeout.py" 1800 buildah bud --layers --force-rm --jobs 1 --network host \
|
||||
# 一次只放 MOSHIRO_AOT_SLOTS 个 NativeAOT 编译进来(见 ci/with-aot-slot.sh);一个 RID 内 Agent 和注册工具并行编(--jobs 2),所以 4 个槽位最多 8 个编译同时跑;CI 主机 44 核 46G
|
||||
bash "$root/ci/with-aot-slot.sh" python3 "$root/ci/run-with-timeout.py" 1800 buildah bud --layers --force-rm --jobs 2 --network host \
|
||||
--tls-verify=true --ulimit nofile=65536:65536 --volume "$nuget_packages:/root/.nuget/packages:ro,z" --arch amd64 \
|
||||
--build-arg "NATIVEAOT_RESTORE_IMAGE=$restore_image" \
|
||||
--build-arg "NODE_RID=$rid" --build-arg "STATIC_MSQUIC=$static_msquic" \
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@ mkdir -p "$sqlite_cache_root/locks"
|
||||
cd "$root/backend"
|
||||
bash "$root/ci/with-aot-slot.sh" flock --close --wait 900 "$sqlite_cache_root/locks/$rid.lock" \
|
||||
dotnet publish src/MoShiro.Backend \
|
||||
-m:4 -nodeReuse:false -c Release -r "$rid" --self-contained true \
|
||||
-m:8 -nodeReuse:false -c Release -r "$rid" --self-contained true \
|
||||
--no-restore \
|
||||
-p:DebugType=none -p:DebugSymbols=false \
|
||||
-p:PublishAot=true -p:UseAotAnywhere=true -p:SqliteStaticLink=true -p:OpenApiGenerateDocuments=false \
|
||||
|
||||
Reference in new issue
Block a user