-
Notifications
You must be signed in to change notification settings - Fork 1
100 lines (88 loc) · 2.13 KB
/
main.lazarus.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
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
94
95
96
97
98
99
100
name: Lazarus Main Workflow
permissions:
contents: write
on:
push:
branches: [ main ]
tags: [ "*" ]
paths-ignore: [ "README.md", "CHANGELOG.md", "release-notes.md" ]
pull_request:
branches: [ main ]
jobs:
build:
name: 01 - Build Application
uses: gcarreno/re-usable-workflows/.github/workflows/build.lazarus.yml@main
with:
config: '{
"app-name": "helloworld",
"lpi-path": "src",
"matrix": {
"os": [
"ubuntu-latest",
"windows-latest",
"macos-latest"
],
"include":[
{
"os": "ubuntu-latest",
"triplet": "x86_64-linux"
},
{
"os": "windows-latest",
"triplet": "x86_64-win64"
},
{
"os": "macos-latest",
"triplet": "x86_64-darwin"
}
],
"lazarus-versions": [
"stable"
]
}
}'
strategy:
fail-fast: true
test:
name: 02 - Test Application
uses: gcarreno/re-usable-workflows/.github/workflows/test.lazarus.yml@main
with:
config: '{
"app-name": "helloworldtest",
"lpi-path": "tests",
"what-tests": "all",
"output-format": "plain",
"matrix": {
"os":[
"ubuntu-latest",
"windows-latest",
"macos-latest"
]
}
}'
strategy:
fail-fast: true
release:
name: 03 - Create GitHub Release
uses: gcarreno/re-usable-workflows/.github/workflows/release.lazarus.yml@main
needs: [ build, test ]
with:
config: '{
"win": "${{ needs.build.outputs.win-artefact-path }}",
"lin": "${{ needs.build.outputs.lin-artefact-path }}",
"osx": "${{ needs.build.outputs.osx-artefact-path }}"
}'
strategy:
fail-fast: true
#{
# "include":[
# {
# "project":"foo",
# "config":"Debug"
# },
# {
# "project":"bar",
# "config":"Release"
# }
# ]
#}