perf(ci): check out exact source through local Gitea
Gitea CI / Check code and tests (pull_request) Successful in 5m14s
Gitea CI / Audit and package Windows x64 (pull_request) Successful in 59s
Gitea CI / Build Android APK (pull_request) Successful in 3m20s
Gitea CI / Build Windows x64 app (pull_request) Successful in 6m30s
Gitea CI / Assemble and validate CI artifacts (pull_request) Successful in 53s
Gitea CI / Gitea CI passed (pull_request) Successful in 2s

This commit is contained in:
lingjhf committed 2026-10-06 16:06:40 +08:00
1 parent 44cb452350
commit f97d8bcb90
3 files changed
+12

No files matched your search

+3
View File
@@ -49,6 +49,9 @@ also use this loopback endpoint; tooling rewrites only the validated public Gite
origin. The server's public URL remains `https://git.orangraph.com`, and the runner origin. The server's public URL remains `https://git.orangraph.com`, and the runner
registration is unchanged. These workflow labels require this shared-host layout; registration is unchanged. These workflow labels require this shared-host layout;
configure a reachable private endpoint before using runners on other hosts. configure a reachable private endpoint before using runners on other hosts.
Checkout uses the same endpoint through its `github-server-url` input, retaining
the requested commit/tag and disabling persisted credentials. Release requests
retain the public Host header so Gitea response links pass the public-origin checks.
Compare warm CI runs after the first cache fill. Measure checks, Android compile, Compare warm CI runs after the first cache fill. Measure checks, Android compile,
Windows compile, packaging and artifact transfer separately. Total duration follows Windows compile, packaging and artifact transfer separately. Total duration follows
+5
View File
@@ -31,6 +31,7 @@ jobs:
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with: with:
persist-credentials: false persist-credentials: false
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
- name: Configure persistent build caches - name: Configure persistent build caches
run: ./tool/gitea/prepare-build-cache.ps1 run: ./tool/gitea/prepare-build-cache.ps1
- name: Verify Flutter version and configure Java - name: Verify Flutter version and configure Java
@@ -64,6 +65,7 @@ jobs:
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with: with:
persist-credentials: false persist-credentials: false
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
- name: Configure persistent build caches - name: Configure persistent build caches
run: ./tool/gitea/prepare-build-cache.ps1 run: ./tool/gitea/prepare-build-cache.ps1
- name: Verify Flutter version and configure Java - name: Verify Flutter version and configure Java
@@ -101,6 +103,7 @@ jobs:
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with: with:
persist-credentials: false persist-credentials: false
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
- name: Configure persistent build caches - name: Configure persistent build caches
run: ./tool/gitea/prepare-build-cache.ps1 run: ./tool/gitea/prepare-build-cache.ps1
- name: Verify Flutter version - name: Verify Flutter version
@@ -141,6 +144,7 @@ jobs:
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with: with:
persist-credentials: false persist-credentials: false
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
- name: Download saved Windows app - name: Download saved Windows app
uses: https://github.com/actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 uses: https://github.com/actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
env: env:
@@ -184,6 +188,7 @@ jobs:
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with: with:
persist-credentials: false persist-credentials: false
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
- name: Download Android CI artifact - name: Download Android CI artifact
uses: https://github.com/actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 uses: https://github.com/actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
env: env:
+4
View File
@@ -45,6 +45,7 @@ jobs:
with: with:
ref: ${{ gitea.event.inputs.tag || gitea.ref_name }} ref: ${{ gitea.event.inputs.tag || gitea.ref_name }}
persist-credentials: false persist-credentials: false
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
- name: Select successful CI and prepare draft - name: Select successful CI and prepare draft
id: draft id: draft
run: | run: |
@@ -69,6 +70,7 @@ jobs:
with: with:
ref: ${{ needs.prepare.outputs.sha }} ref: ${{ needs.prepare.outputs.sha }}
persist-credentials: false persist-credentials: false
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
- name: Download Android CI artifact - name: Download Android CI artifact
run: | run: |
python tool/gitea/stage-release.py fetch-android --path .build/android python tool/gitea/stage-release.py fetch-android --path .build/android
@@ -94,6 +96,7 @@ jobs:
with: with:
ref: ${{ needs.prepare.outputs.sha }} ref: ${{ needs.prepare.outputs.sha }}
persist-credentials: false persist-credentials: false
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
- name: Download Windows CI artifact - name: Download Windows CI artifact
run: | run: |
python tool/gitea/stage-release.py fetch-windows --path .build/windows python tool/gitea/stage-release.py fetch-windows --path .build/windows
@@ -119,6 +122,7 @@ jobs:
with: with:
ref: ${{ needs.prepare.outputs.sha }} ref: ${{ needs.prepare.outputs.sha }}
persist-credentials: false persist-credentials: false
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
- name: Download release verification metadata - name: Download release verification metadata
run: | run: |
python tool/gitea/stage-release.py fetch-release --path dist python tool/gitea/stage-release.py fetch-release --path dist