fix(ci): regenerate release plugin registrants before building
Gitea CI / Check code and tests (pull_request) Successful in 5m32s
Gitea CI / Audit and package Windows x64 (pull_request) Canceled after 0s
Gitea CI / Assemble and validate CI artifacts (pull_request) Canceled after 0s
Gitea CI / Build Android APK (pull_request) Canceled after 14m19s
Gitea CI / Build Windows x64 app (pull_request) Canceled after 14m25s
Gitea CI / Gitea CI passed (pull_request) Failing after 25s

This commit is contained in:
lingjhf committed 2026-10-06 14:27:00 +08:00
1 parent 933ace4e51
commit e06590dc82
2 files changed
+6 -2

No files matched your search

+4
View File
@@ -14,6 +14,10 @@ enabled for CI. Do not clear these caches between runs. Each job must have its o
checkout; do not share a Flutter `build/` or `.dart_tool/` directory between jobs. checkout; do not share a Flutter `build/` or `.dart_tool/` directory between jobs.
With an ephemeral runner, these user directories must be persisted separately. With an ephemeral runner, these user directories must be persisted separately.
Build commands keep Flutter's default Pub preparation after the explicit locked
resolution. Do not use `--no-pub`: Flutter also regenerates release plugin
registrants in that preparation, removing dev-only plugins such as integration_test.
The runner needs at least two execution slots. The local runner configuration at The runner needs at least two execution slots. The local runner configuration at
`D:/workspace/gitea-stack/runner/config.yaml` currently has `capacity: 2`. The host `D:/workspace/gitea-stack/runner/config.yaml` currently has `capacity: 2`. The host
has 12 logical processors and approximately 16 GB RAM; the Android job retains its has 12 logical processors and approximately 16 GB RAM; the Android job retains its
+2 -2
View File
@@ -79,7 +79,7 @@ jobs:
$properties = [IO.File]::ReadAllText($file).Replace('-Xmx8G', '-Xmx3G').Replace('MaxMetaspaceSize=4G', 'MaxMetaspaceSize=768m') $properties = [IO.File]::ReadAllText($file).Replace('-Xmx8G', '-Xmx3G').Replace('MaxMetaspaceSize=4G', 'MaxMetaspaceSize=768m')
[IO.File]::WriteAllText($file, $properties + "`norg.gradle.workers.max=4`norg.gradle.caching=true`n") [IO.File]::WriteAllText($file, $properties + "`norg.gradle.workers.max=4`norg.gradle.caching=true`n")
- name: Build production Android APK - name: Build production Android APK
run: flutter build apk --no-pub --release --flavor production --target-platform android-arm64,android-x64 run: flutter build apk --release --flavor production --target-platform android-arm64,android-x64
- name: Upload Android CI artifact - name: Upload Android CI artifact
uses: ./.gitea/actions/upload-artifact uses: ./.gitea/actions/upload-artifact
with: with:
@@ -111,7 +111,7 @@ jobs:
- name: Build production Windows app - name: Build production Windows app
run: | run: |
Remove-Item Env:CUTDEX_WINDOWS_PATH, Env:CUTDEX_WINDOWS_PACKAGE_PATH -ErrorAction SilentlyContinue Remove-Item Env:CUTDEX_WINDOWS_PATH, Env:CUTDEX_WINDOWS_PACKAGE_PATH -ErrorAction SilentlyContinue
flutter build windows --no-pub --release --flavor production flutter build windows --release --flavor production
if ($LASTEXITCODE -ne 0) { throw 'Windows build failed.' } if ($LASTEXITCODE -ne 0) { throw 'Windows build failed.' }
- name: Verify native SDK matches pinned packaging tools - name: Verify native SDK matches pinned packaging tools
run: | run: |