-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.5 KB
/
ci.yml
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
name: build-test
on:
pull_request:
push:
paths-ignore: [ "README.md" ]
branches: [ "master", "main" ]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, ubuntu-20.04, windows-latest, macos-latest]
lazarus-versions: [dist, stable, 2.2.6]
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install Lazarus
uses: gcarreno/[email protected]
with:
lazarus-version: ${{ matrix.lazarus-versions }}
with-cache: false
- name: Run tests (Windows)
if: ${{ matrix.operating-system == 'windows-latest' }}
run: |
lazbuild -B --bm=Release "tests/test_fpc.lpi"
ls -la
test_fpc.exe "--help"
test_fpc.exe "--all" "--format=plain"
- name: Build tests (Ubuntu)
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
run: |
echo Building with GTK2
lazbuild -B --bm=Release "tests/test_fpc.lpi"
echo Installing Qt5 Dev
sudo apt update
sudo apt install libqt5pas-dev -y
echo Building with Qt5
test_fpc "--all" "--format=plain"
lazbuild -B --bm=Release --ws=qt5 "tests/test_fpc.lpi"
test_fpc "--all" "--format=plain"
- name: Build tests (macOS)
if: ${{ matrix.operating-system == 'macos-latest' }}
run: |
lazbuild -B --bm=Release --ws=cocoa "tests/test_fpc.lpi"
test_fpc "--all" "--format=plain"