-
Notifications
You must be signed in to change notification settings - Fork 23
93 lines (80 loc) · 2.8 KB
/
make.yml
File metadata and controls
93 lines (80 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Make
on:
schedule:
- cron: '0 0 1 * *'
push:
branches:
- "**"
pull_request:
branches:
- master
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-24.04-arm
- windows-latest
- macos-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
# ─── Linux (unified for x86_64 and AArch64) ────────────────────────
- name: Build on Linux
if: runner.os == 'Linux'
shell: bash
run: |
set -xeuo pipefail
sudo bash -c 'apt-get update; apt-get install -y lazarus' >/dev/null
fpc -iV
instantfpc .github/workflows/make.pas
# ─── macOS ──────────────────────────────────────────────────────────
- name: Install Lazarus on macOS
if: runner.os == 'macOS'
uses: gcarreno/setup-lazarus@v3
with:
lazarus-version: stable
with-cache: false
- name: Build on macOS
if: runner.os == 'macOS'
shell: bash
run: |
set -xeuo pipefail
fpc -iV
instantfpc .github/workflows/make.pas
# ─── Windows ────────────────────────────────────────────────────────
- name: Build on Windows
if: runner.os == 'Windows'
shell: powershell
run: |
$ErrorActionPreference = 'Stop'
Set-PSDebug -Strict
Write-Host "Installing Lazarus and OpenSSL 1.1 via Chocolatey..."
choco install lazarus -y --no-progress
choco install openssl.light --version=1.1.1.20181020 -y --no-progress
# Discover FPC bin path dynamically
$fpcDir = Get-ChildItem 'C:\Lazarus\fpc' -Directory | Select-Object -First 1
$env:Path += ";C:\Lazarus;$($fpcDir.FullName)\bin\x86_64-win64"
# Add OpenSSL to PATH (check known locations)
$opensslPaths = @(
'C:\ProgramData\chocolatey\lib\openssl.light\tools',
'C:\Program Files\OpenSSL\bin',
'C:\Program Files\OpenSSL-Win64\bin'
)
foreach ($p in $opensslPaths) {
if (Test-Path $p) { $env:Path += ";$p" }
}
Write-Host "FPC version:"
fpc -iV
Write-Host "Building make.pas..."
instantfpc .github/workflows/make.pas