CI: remove all dynamic expressions (vars/secrets ||) from the workflow
Some checks failed
CI / Windows build (push) Failing after 24s
Some checks failed
CI / Windows build (push) Failing after 24s
No workflow runs were being created for recent pushes (total_count frozen),
while the prior commit without these expressions did create runs. Gitea's
workflow parser appears to reject the `${{ vars.* }}` / `${{ secrets.* || ... }}`
expressions, so no run is triggered at all.
Make the workflow fully static: hardcode the local proxy for the ONNX Runtime
download, drop the vars.FLUTTER_ROOT reference (env FLUTTER_ROOT + common paths
still work), and remove the commented fallback block. README documents the
runner-side options.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -30,24 +30,10 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v4
|
||||
# Fallback if gitea.com is unreachable — clone from your own Gitea
|
||||
# instance (always reachable from the runner). Comment out the line
|
||||
# above and uncomment this block:
|
||||
#
|
||||
# - name: Checkout (manual, from local Gitea)
|
||||
# shell: pwsh
|
||||
# run: |
|
||||
# $t = "${{ github.token }}"
|
||||
# $h = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("x-access-token:$t"))
|
||||
# git init
|
||||
# git remote add origin "${{ github.server_url }}/${{ github.repository }}.git"
|
||||
# git -c http.extraheader="AUTHORIZATION: basic $h" fetch --depth=1 origin "${{ github.sha }}"
|
||||
# git checkout --force FETCH_HEAD
|
||||
|
||||
# The runner's Actions shell often does not inherit Flutter on PATH, so
|
||||
# locate it and add it to PATH for subsequent steps. Override by setting
|
||||
# the repo variable FLUTTER_ROOT (Settings > Actions > Variables) to your
|
||||
# Flutter SDK directory, or just add Flutter's bin to the system PATH.
|
||||
# locate it and add it to PATH for subsequent steps. Set a system env var
|
||||
# FLUTTER_ROOT to your Flutter SDK dir, or add Flutter's bin to PATH.
|
||||
- name: Locate Flutter
|
||||
shell: pwsh
|
||||
run: |
|
||||
@@ -55,7 +41,6 @@ jobs:
|
||||
Write-Host "flutter already on PATH"; exit 0
|
||||
}
|
||||
$candidates = @()
|
||||
if ("${{ vars.FLUTTER_ROOT }}") { $candidates += (Join-Path "${{ vars.FLUTTER_ROOT }}" 'bin') }
|
||||
if ($env:FLUTTER_ROOT) { $candidates += (Join-Path $env:FLUTTER_ROOT 'bin') }
|
||||
$candidates += @(
|
||||
'C:\flutter\bin','C:\src\flutter\bin','C:\tools\flutter\bin','C:\dev\flutter\bin',
|
||||
@@ -102,10 +87,10 @@ jobs:
|
||||
# system-wide to skip the download entirely.
|
||||
- name: Build Windows release
|
||||
env:
|
||||
HTTP_PROXY: ${{ secrets.HTTP_PROXY || 'http://127.0.0.1:7890' }}
|
||||
HTTPS_PROXY: ${{ secrets.HTTPS_PROXY || 'http://127.0.0.1:7890' }}
|
||||
http_proxy: ${{ secrets.HTTP_PROXY || 'http://127.0.0.1:7890' }}
|
||||
https_proxy: ${{ secrets.HTTPS_PROXY || 'http://127.0.0.1:7890' }}
|
||||
HTTP_PROXY: http://127.0.0.1:7890
|
||||
HTTPS_PROXY: http://127.0.0.1:7890
|
||||
http_proxy: http://127.0.0.1:7890
|
||||
https_proxy: http://127.0.0.1:7890
|
||||
run: flutter build windows --release
|
||||
|
||||
- name: Show build output
|
||||
|
||||
Reference in New Issue
Block a user