Skip to content

Commit 2d2c13b

Browse files
damiengclaude
andcommitted
Switch CI to ollydev/setup-lazarus-fpcup
Handles cross-compilation natively via fpcupdeluxe, avoiding the need to manually download cross-compilers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5b7de6d commit 2d2c13b

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,11 @@ jobs:
2323
- uses: actions/checkout@v4
2424

2525
- name: Install Lazarus
26-
uses: gcarreno/setup-lazarus@v3
26+
uses: ollydev/setup-lazarus-fpcup@v1
2727
with:
28-
lazarus-version: stable
29-
with-cache: false
30-
31-
- name: Install i386-win32 cross-compiler
32-
if: matrix.target-cpu == 'i386'
33-
shell: pwsh
34-
run: |
35-
$fpcBin = Split-Path (Get-Command fpc.exe).Source
36-
$fpcBase = Split-Path (Split-Path $fpcBin)
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
28+
laz: stable
29+
cpu: ${{ matrix.target-cpu }}
30+
os: ${{ matrix.target-os }}
4131

4232
- name: Build package
4333
run: lazbuild --add-package Source/DIMComponents.lpk

0 commit comments

Comments
 (0)