-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (34 loc) · 1.05 KB
/
build.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
name: build-test
on:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [windows-latest,ubuntu-latest,macos-latest]
lazarus-versions: [stable] #[dist, stable, 2.0.12, 2.0.10, 2.0.8, 2.0.6]
steps:
- uses: actions/checkout@v4
- name: Install Lazarus
uses: gcarreno/[email protected]
with:
lazarus-version: ${{ matrix.lazarus-versions }}
with-cache: true
- name: Build the application
if: ${{ matrix.operating-system != 'macos-latest' }}
run: |
lazbuild -B "pg_timetable_gui.lpi"
ls
- name: Build the application (macOS)
if: ${{ matrix.operating-system == 'macos-latest' }}
run: lazbuild -B --ws=cocoa "pg_timetable_gui.lpi"
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: pg_timetable_gui for ${{ matrix.operating-system }}
retention-days: 3
path: |
pg_timetable_gui.exe
pg_timetable_gui