forked from open-watcom/open-watcom-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
184 lines (182 loc) · 5.01 KB
/
release.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
name: Release-Build
run-name: Release build (daily and monthly)
on:
schedule:
- cron: '30 0 * * *'
workflow_dispatch:
jobs:
check_run:
if: github.repository == 'open-watcom/open-watcom-v2'
name: Check if to run
runs-on: ubuntu-latest
outputs:
runit: ${{ steps.check_tag.outputs.old }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: Check tag reference
id: check_tag
uses: "./.github/actions/ghtagchk"
with:
tag: 'Current-build'
owdebug: ${{ vars.OWDEBUG }}
owcurlopts: ${{ vars.OWCURLOPTS }}
workflow-lnx:
needs: check_run
if: needs.check_run.outputs.runit
name: Linux
strategy:
matrix:
include:
- owtools: 'GCC'
tools: 'gcc'
image: 'ubuntu-20.04'
uses: "./.github/workflows/rel-lnx.yml"
with:
arch: 'x64'
tools: ${{ matrix.tools }}
owtools: ${{ matrix.owtools }}
image: ${{ matrix.image }}
owdebug: ${{ vars.OWDEBUG }}
workflow-nt:
needs: check_run
if: needs.check_run.outputs.runit
name: Windows
strategy:
matrix:
include:
- owtools: 'VISUALC'
tools: 'vs2019'
image: 'windows-2019'
uses: "./.github/workflows/rel-nt.yml"
with:
arch: 'x64'
tools: ${{ matrix.tools }}
owtools: ${{ matrix.owtools }}
image: ${{ matrix.image }}
owdebug: ${{ vars.OWDEBUG }}
workflow-osx:
needs: check_run
if: needs.check_run.outputs.runit
name: OSX
strategy:
matrix:
include:
- owtools: 'CLANG'
arch: 'x64'
image: 'macos-13'
relpath: 'rel bino64'
- owtools: 'CLANG'
arch: 'a64'
image: 'macos-14'
relpath: 'rel armo64'
uses: "./.github/workflows/rel-osx.yml"
with:
arch: ${{ matrix.arch }}
tools: 'clang'
relpath: ${{ matrix.relpath }}
owtools: ${{ matrix.owtools }}
image: ${{ matrix.image }}
owdebug: ${{ vars.OWDEBUG }}
install:
needs:
- workflow-lnx
- workflow-nt
- workflow-osx
name: Installers
runs-on: ubuntu-latest
strategy:
matrix:
include:
- display: DOS
insttype: instdos
- display: OS/2
insttype: instos2
- display: Linux(32-bit)
insttype: instlnx32
- display: Linux(64-bit)
insttype: instlnx64
- display: Windows(16-bit)
insttype: instwin16
- display: Windows(32-bit)
insttype: instwin32
- display: Windows(64-bit)
insttype: instwin64
- display: OW Snapshot
insttype: snapshot
steps:
- name: checkout
uses: actions/checkout@v4
- name: Installer
uses: "./.github/actions/install"
with:
target: ${{ matrix.insttype }}
owdebug: ${{ vars.OWDEBUG }}
release:
needs: install
name: "Create GitHub Release"
runs-on: ubuntu-latest
outputs:
drelid: ${{ steps.rel_rel.outputs.drelid }}
mrelid: ${{ steps.rel_rel.outputs.mrelid }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: GitHub Release
id: rel_rel
uses: "./.github/actions/release"
with:
owdebug: ${{ vars.OWDEBUG }}
owcurlopts: ${{ vars.OWCURLOPTS }}
- run: echo "drelid=${{ steps.rel_rel.outputs.drelid }};mrelid=${{ steps.rel_rel.outputs.mrelid }}"
shell: bash
assets:
needs: release
name: "Upload Installers"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- display: DOS
asset: instdos
- display: OS/2
asset: instos2
- display: Linux(32-bit)
asset: instlnx32
- display: Linux(64-bit)
asset: instlnx64
- display: Windows(16-bit)
asset: instwin16
- display: Windows(32-bit)
asset: instwin32
- display: Windows(64-bit)
asset: instwin64
- display: OW Snapshot
asset: snapshot
steps:
- name: checkout
uses: actions/checkout@v4
- run: echo "drelid=${{ needs.release.outputs.drelid }};mrelid=${{ needs.release.outputs.mrelid }}"
shell: bash
- name: Upload ${{ matrix.display }} Asset
uses: "./.github/actions/ghassets"
with:
hostos: 'lnx'
target: ${{ matrix.asset }}
drelid: ${{ needs.release.outputs.drelid }}
mrelid: ${{ needs.release.outputs.mrelid }}
owdebug: ${{ vars.OWDEBUG }}
owcurlopts: ${{ vars.OWCURLOPTS }}
end-end:
needs: assets
name: Call to delete Artifacts
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- if: vars.OWDELETEARTIFACTS == 1
name: Call to delete Artifacs
uses: "./.github/actions/artfdelc"
with:
owdebug: ${{ vars.OWDEBUG }}
owcurlopts: ${{ vars.OWCURLOPTS }}