ci: reduce native test compilation and artifact upload overhead

This commit is contained in:
kuddev committed 2026-09-14 20:35:37 +08:00
1 parent 8760eef788
commit 948a427280
6 files changed
+67 -2

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
# Test compilation only; packaging continues to use profile.release.
# Named dependency overrides take precedence over "*", so reset those too.
[profile.ci]
inherits = "dev"
opt-level = 0
debug = 0
debug-assertions = true
overflow-checks = true
split-debuginfo = "off"
incremental = false
codegen-units = 256
lto = false
[profile.ci.package]
"*" = { opt-level = 0 }
resvg = { opt-level = 0 }
rustybuzz = { opt-level = 0 }
taffy = { opt-level = 0 }
ttf-parser = { opt-level = 0 }
smol = { opt-level = 0 }
gpui = { opt-level = 0 }
gpui_macros = { opt-level = 0 }
nebula_terminal = { opt-level = 0 }
+2
View File
@@ -10,6 +10,7 @@ on:
- "Cargo.lock"
- "rust-toolchain.toml"
- ".github/workflows/linux-lua.yml"
- ".github/ci-profile.toml"
pull_request:
paths:
- "**/*.rs"
@@ -18,6 +19,7 @@ on:
- "Cargo.lock"
- "rust-toolchain.toml"
- ".github/workflows/linux-lua.yml"
- ".github/ci-profile.toml"
permissions:
contents: read
+9
View File
@@ -174,6 +174,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
compression-level: 0
name: native-timings-${{ matrix.platform }}
path: target/cargo-timings
if-no-files-found: warn
@@ -283,6 +284,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
compression-level: 0
name: stable-package-linux-x64
path: |
dist/*.AppImage
@@ -294,6 +296,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
compression-level: 0
name: stable-evidence-linux-x64
path: dist/conformance
if-no-files-found: warn
@@ -424,6 +427,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
compression-level: 0
name: stable-package-macos-${{ matrix.asset_architecture }}
path: dist/*.dmg
if-no-files-found: error
@@ -432,6 +436,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
compression-level: 0
name: stable-evidence-macos-${{ matrix.architecture }}
path: dist/conformance
if-no-files-found: warn
@@ -502,6 +507,7 @@ jobs:
- name: Retain built Windows runtime before packaging
uses: actions/upload-artifact@v4
with:
compression-level: 0
name: stable-runtime-windows-x64
path: |
target/release/pebrel.exe
@@ -536,6 +542,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
compression-level: 0
name: stable-package-windows-x64
path: |
dist/Pebrel-v${{ needs.prepare.outputs.version }}-windows-x64.zip
@@ -546,6 +553,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
compression-level: 0
name: stable-evidence-windows-x64
path: dist/conformance
if-no-files-found: warn
@@ -593,6 +601,7 @@ jobs:
- name: Upload complete stable release set
uses: actions/upload-artifact@v4
with:
compression-level: 0
name: Pebrel-v${{ needs.prepare.outputs.version }}
path: release-dist
if-no-files-found: error