Skip to content

Commit 2ade9cd

Browse files
authored
Update make.yml
1 parent e88195a commit 2ade9cd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/make.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,19 @@ jobs:
3939
set -xeuo pipefail
4040
sudo bash -c 'apt-get update; apt-get install -y lazarus' >/dev/null
4141
instantfpc -Fu/usr/lib/lazarus/*/components/lazutils .github/workflows/make.pas
42+
43+
- name: Build on Windows
44+
if: runner.os == 'Windows'
45+
shell: powershell
46+
run: |
47+
New-Variable -Option Constant -Name VAR -Value @{
48+
Uri = 'https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%203.6/lazarus-3.6-fpc-3.2.2-win64.exe/download'
49+
OutFile = (New-TemporaryFile).FullName + '.exe'
50+
}
51+
Invoke-WebRequest @VAR
52+
& $VAR.OutFile.Replace('Temp', 'Temp\.') /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART | Out-Null
53+
$Env:PATH+=';C:\Lazarus'
54+
$Env:PATH+=';C:\Lazarus\fpc\3.2.2\bin\x86_64-win64'
55+
(Get-Command 'lazbuild').Source | Out-Host
56+
(Get-Command 'instantfpc').Source | Out-Host
57+
instantfpc '-FuC:\Lazarus\components\lazutils' .github/workflows/make.pas

0 commit comments

Comments
 (0)