perf(windows): store installer uploads without recompression

This commit is contained in:
winewill committed 2026-10-21 19:35:40 +08:00
1 parent b6e387e5b3
commit eda31bfc29
5 files changed
+9 -3

No files matched your search

+2
View File
@@ -213,6 +213,7 @@ jobs:
uses: actions/[email protected]
with:
name: windows-x64-unsigned-${{ steps.settings.outputs.version }}-${{ github.run_id }}-${{ github.run_attempt }}
compression-level: 0
include-hidden-files: true
path: ${{ steps.retained.outputs.directory }}/*
if-no-files-found: error
@@ -222,6 +223,7 @@ jobs:
uses: actions/[email protected]
with:
name: windows-x64-signed-${{ steps.settings.outputs.version }}-${{ github.run_id }}-${{ github.run_attempt }}
compression-level: 0
include-hidden-files: true
path: ${{ steps.retained.outputs.directory }}/*
if-no-files-found: error
+2 -2
View File
@@ -24,8 +24,8 @@
en: 5b4f0f80a117f202
zh: ff05be196c181087
/desktop-packaging/windows-actions-packaging:
en: e628d75c47317979
zh: 17055233501f4df6
en: af6991014e97911e
zh: f30c4d6cdcd8e8c6
/desktop-packaging/macos-self-hosted-packaging:
en: a3af9523fdc60036
zh: 5e18d4740e9b7f57
+2
View File
@@ -119,6 +119,8 @@ For cache measurements, `cache_namespace` selects a retained subdirectory for bo
The dependency-install and packaging steps normalize their own shell to normal CPU, I/O and memory priority before launching children, and record all three values before and after adjustment. Failure to establish these values stops the step. This does not modify the runner task, account, startup triggers or other processes.
Installer uploads store the already-compressed release files without ZIP recompression; this preserves installer bytes and signatures. Diagnostic uploads retain their ordinary compression.
<a id="macos-actions"></a>
## macOS self-hosted packaging
+2
View File
@@ -119,6 +119,8 @@ runner 的受监督启动和恢复见 [Windows runner 机器准备](../windows-s
依赖安装和打包步骤在启动子进程前,将自身 shell 的 CPU、I/O 和内存优先级调整为普通值,并记录调整前后的三项值;无法确认调整成功时停止该步骤。这不会修改 runner 任务、账户、启动触发器或其他进程。
安装器上传直接存储已经压缩的发布文件,不再进行 ZIP 二次压缩;安装器字节和签名保持不变。诊断日志上传保留通常的压缩方式。
<a id="macos-actions"></a>
## macOS 自托管打包
+1 -1
View File
@@ -113,7 +113,7 @@ it('retains failure diagnostics and uploads only the selected successful install
})
for (const mode of ['unsigned', 'signed']) {
const upload = uploads.find(step => step.if === `success() && inputs.signing == '${mode}'`)!
expect(upload.with).toMatchObject({ path: '${{ steps.retained.outputs.directory }}/*', 'if-no-files-found': 'error' })
expect(upload.with).toMatchObject({ path: '${{ steps.retained.outputs.directory }}/*', 'if-no-files-found': 'error', 'compression-level': 0 })
}
})