ci(gitea): use pinned Windows release instead of inherited source overrides
Gitea CI / Gitea CI passed (pull_request) Canceled after 0s
Gitea CI / Windows x64 and Android (pull_request) Canceled after 4m33s

This commit is contained in:
lingjhf committed 2026-10-06 04:59:51 +08:00
1 parent 3a8d9b76e8
commit d6d665312e
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -44,7 +44,11 @@ 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`n") [IO.File]::WriteAllText($file, $properties + "`norg.gradle.workers.max=4`n")
- run: flutter build apk --release --flavor production --target-platform android-arm64,android-x64 - run: flutter build apk --release --flavor production --target-platform android-arm64,android-x64
- run: flutter build windows --release --flavor production - name: Build Windows from the pinned Gitea native release
run: |
Remove-Item Env:CUTDEX_WINDOWS_PATH, Env:CUTDEX_WINDOWS_PACKAGE_PATH -ErrorAction SilentlyContinue
flutter build windows --release --flavor production
if ($LASTEXITCODE -ne 0) { throw 'Windows build failed.' }
- name: Prepare isolated packaging tools - name: Prepare isolated packaging tools
run: | run: |
python -m venv .build/package-tools python -m venv .build/package-tools
+1 -1
View File
@@ -25,7 +25,7 @@ plugins {
include(":app") include(":app")
// Native source development is opt-in; default resolution uses GitHub Packages. // Native source development is opt-in; default resolution uses Gitea Maven packages.
providers.gradleProperty("cutdex.android.path").orNull?.let { nativePath -> providers.gradleProperty("cutdex.android.path").orNull?.let { nativePath ->
includeBuild(nativePath) { includeBuild(nativePath) {
dependencySubstitution { dependencySubstitution {