优化 Gitea 并行构建、重试与 Windows 更新发布 #5
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -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: |
|
||||||
|
|||||||
Reference in new issue
Block a user