diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 52ab336..edca658 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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