diff --git a/.gitea/CI_PERFORMANCE.md b/.gitea/CI_PERFORMANCE.md index 6ce0e28..01a1ccf 100644 --- a/.gitea/CI_PERFORMANCE.md +++ b/.gitea/CI_PERFORMANCE.md @@ -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. 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 `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 diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4ac9fad..0471aae 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -79,7 +79,7 @@ jobs: $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") - 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 uses: ./.gitea/actions/upload-artifact with: @@ -111,7 +111,7 @@ jobs: - name: Build production Windows app run: | 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.' } - name: Verify native SDK matches pinned packaging tools run: |