-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 1.01 KB
/
workflow.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
name: build-test
on:
pull_request:
push:
paths-ignore:
- "README.md"
branches:
- master
- releases/*
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest,windows-latest,macos-latest]
lazarus-versions: [stable, 2.0.10]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Lazarus
uses: gcarreno/setup-lazarus@v3.0.2
with:
lazarus-version: ${{ matrix.lazarus-versions }}
- name: Build the Example App
if: ${{ matrix.operating-system != 'macos-latest' }}
run: lazbuild -B --bm=Release "example/example.lpi"
- name: Build the Example App (macos)
if: ${{ matrix.operating-system == 'macos-latest' }}
run: lazbuild -B --bm=Release --ws=cocoa "example/example.lpi"
- name: Build the Test App
run: lazbuild -B --bm=Debug "tests/testlazapibay.lpi"
- name: Run the Test App
run: bin/testlazapibay "--all" "--format=plain"