File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 39
39
set -xeuo pipefail
40
40
sudo bash -c 'apt-get update; apt-get install -y lazarus' >/dev/null
41
41
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
You can’t perform that action at this time.
0 commit comments