-
Notifications
You must be signed in to change notification settings - Fork 65
47 lines (40 loc) · 1.25 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
name: ci
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, windows-latest, macos-latest]
lazarus-versions: [dist, stable]
build-modes: [ "Default", "Unicode", "UnicodeAndChars" ]
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=${{ matrix.build-modes }} "test/test_fpc.lpi"
test/test_fpc.exe
- name: Run tests (Ubuntu)
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
run: |
lazbuild -B --bm=${{ matrix.build-modes }} "test/test_fpc.lpi"
test/test_fpc
- name: Run tests (macOS)
if: ${{ matrix.operating-system == 'macos-latest' }}
run: |
lazbuild -B --bm=${{ matrix.build-modes }} --ws=cocoa "test/test_fpc.lpi"
ls
ls test
test/test_fpc