refactor(core): own editor UI and pin verified native releases
Gitea CI / Check code and tests (pull_request) Failing after 8s
Gitea CI / Build Android APK (pull_request) Skipped
Gitea CI / Build Windows x64 app (pull_request) Skipped
Gitea CI / Audit and package Windows x64 (pull_request) Skipped
Gitea CI / Assemble and validate CI artifacts (pull_request) Skipped
Gitea CI / Gitea CI passed (pull_request) Failing after 1s

This commit is contained in:
lingjhf committed 2026-10-12 03:20:29 +08:00
1 parent 796a3852a2
commit 38ca180cf7
354 files changed
+29841 -642

No files matched your search

+16 -1
View File
@@ -14,7 +14,9 @@ concurrency:
env:
CI: 'true'
PYTHONUTF8: '1'
CUTDEX_NATIVE_SOURCE_TOKEN: ${{ secrets.CUTDEX_NATIVE_SOURCE_TOKEN }}
CUTDEX_GITEA_INTERNAL_URL: http://127.0.0.1:3000
CUTDEX_NATIVE_SOURCE_SERVER_URL: http://127.0.0.1:3000
GIT_CONFIG_COUNT: '2'
GIT_CONFIG_KEY_0: core.autocrlf
GIT_CONFIG_VALUE_0: 'false'
@@ -78,10 +80,13 @@ jobs:
$file = 'android/gradle.properties'
$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")
- uses: ./.dependencies/cutdex_core/native_flutter/.gitea/actions/setup-android
if: vars.CUTDEX_NATIVE_BUILD_MODE == 'source'
- name: Build production Android APK
env:
GITEA_ACTOR: lingjhf
run: |
$env:CUTDEX_NATIVE_BUILD_MODE = '${{ vars.CUTDEX_NATIVE_BUILD_MODE || 'artifacts' }}'
Remove-Item Env:CUTDEX_ANDROID_PATH -ErrorAction SilentlyContinue
python tool/build.py android
if ($LASTEXITCODE -ne 0) { throw 'Android build failed.' }
@@ -109,13 +114,23 @@ jobs:
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
- name: Prepare Flutter environment
uses: ./.gitea/actions/prepare-flutter
- name: Clear inherited native build overrides
run: |
foreach ($key in @('CUTDEX_WINDOWS_PATH', 'CUTDEX_WINDOWS_PACKAGE_PATH', 'FFMPEG_DIR', 'LIBCLANG_PATH')) {
Remove-Item "Env:$key" -ErrorAction SilentlyContinue
"$key=" >> $env:GITHUB_ENV
}
- uses: ./.dependencies/cutdex_core/native_flutter/.gitea/actions/setup-windows
if: vars.CUTDEX_NATIVE_BUILD_MODE == 'source'
with:
libclang-path: ${{ vars.CUTDEX_LIBCLANG_PATH }}
- name: Reuse verified Velopack native archive
run: |
python tool/windows/native_cache.py
if ($LASTEXITCODE -ne 0) { throw 'Windows native archive cache preparation failed.' }
- name: Build production Windows app
run: |
Remove-Item Env:CUTDEX_WINDOWS_PATH, Env:CUTDEX_WINDOWS_PACKAGE_PATH -ErrorAction SilentlyContinue
$env:CUTDEX_NATIVE_BUILD_MODE = '${{ vars.CUTDEX_NATIVE_BUILD_MODE || 'artifacts' }}'
python tool/build.py windows
if ($LASTEXITCODE -ne 0) { throw 'Windows build failed.' }
- name: Verify native SDK matches pinned packaging tools