|
@@ -66,17 +66,19 @@ jobs:
|
|
capture_output=True,
|
|
capture_output=True,
|
|
)
|
|
)
|
|
os.environ["INSTANTFPCOPTIONS"] = "-Fu/Applications/Lazarus/components/lazutils"
|
|
os.environ["INSTANTFPCOPTIONS"] = "-Fu/Applications/Lazarus/components/lazutils"
|
|
|
|
+ os.environ["PATH"] += ":/Applications/Lazarus"
|
|
|
|
+ subprocess.run(
|
|
|
|
+ "lazbuild -v".split(),
|
|
|
|
+ check=True,
|
|
|
|
+ )
|
|
|
|
+ os.environ["INSTANTFPCOPTIONS"] = "-Fu/Applications/Lazarus/components/lazutils"
|
|
result = subprocess.run(
|
|
result = subprocess.run(
|
|
"instantfpc .github/workflows/make.pas build".split(),
|
|
"instantfpc .github/workflows/make.pas build".split(),
|
|
capture_output=True,
|
|
capture_output=True,
|
|
)
|
|
)
|
|
- if result.returncode != 0:
|
|
|
|
- print(result.stderr.decode())
|
|
|
|
- else:
|
|
|
|
- print(result.stdout.decode())
|
|
|
|
|
|
+ sys.stderr.write(result.stderr.decode() if result.returncode != 0 else result.stdout.decode())
|
|
sys.exit(result.returncode)
|
|
sys.exit(result.returncode)
|
|
|
|
|
|
-
|
|
|
|
- name: Build on Windows
|
|
- name: Build on Windows
|
|
if: runner.os == 'Windows'
|
|
if: runner.os == 'Windows'
|
|
shell: powershell
|
|
shell: powershell
|