Skip to content

Commit 5b7de6d

Browse files
damiengclaude
andcommitted
Fix CI: use FPC mirror for cross-compiler, add --clobber
SourceForge blocks downloads with Cloudflare challenges. Use FPC bootstrap mirror for ppcross386 instead. Add --clobber to upload step to handle re-runs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b34074c commit 5b7de6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
run: |
3535
$fpcBin = Split-Path (Get-Command fpc.exe).Source
3636
$fpcBase = Split-Path (Split-Path $fpcBin)
37-
$url = "https://sourceforge.net/projects/freepascal/files/Win32/3.2.2/fpc-3.2.2.i386-win32.cross.x86_64-win64.exe/download"
38-
$installer = "$env:TEMP\fpc-cross-i386.exe"
39-
Invoke-WebRequest -Uri $url -OutFile $installer -UseBasicParsing -UserAgent "Mozilla/5.0"
40-
Start-Process -FilePath $installer -ArgumentList "/VERYSILENT","/SUPPRESSMSGBOXES","/DIR=$fpcBase" -Wait -NoNewWindow
37+
$url = "https://ftpmirror.infania.net/mirror/fpc/dist/3.2.2/bootstrap/x86_64-win64-ppcross386.zip"
38+
$zip = "$env:TEMP\ppcross386.zip"
39+
Invoke-WebRequest -Uri $url -OutFile $zip -UseBasicParsing
40+
Expand-Archive -Path $zip -DestinationPath $fpcBin -Force
4141
4242
- name: Build package
4343
run: lazbuild --add-package Source/DIMComponents.lpk
@@ -58,4 +58,4 @@ jobs:
5858
- name: Upload release asset
5959
env:
6060
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61-
run: gh release upload ${{ github.event.release.tag_name }} ${{ matrix.artifact }}
61+
run: gh release upload ${{ github.event.release.tag_name }} ${{ matrix.artifact }} --clobber

0 commit comments

Comments
 (0)