-
Notifications
You must be signed in to change notification settings - Fork 196
206 lines (198 loc) · 5.73 KB
/
release.yml
File metadata and controls
206 lines (198 loc) · 5.73 KB
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
name: Release
run-name: Release Build (daily and monthly)
on:
schedule:
- cron: '30 0 * * *'
workflow_dispatch:
env:
OWDEBUG: "${{vars.DEBUG}}"
OWTESTMODE: "${{vars.TESTMODE}}"
OWCURLOPTS: "${{vars.CURLOPTS}}"
OWUSETARARCHIVE: '1'
jobs:
check_run:
if: github.repository == 'open-watcom/open-watcom-v2' || github.repository == vars.REPO
name: Check if to run
runs-on: ubuntu-latest
outputs:
runit: ${{steps.check_tag.outputs.old}}
steps:
- name: checkout
uses: actions/checkout@v6
- if: env.OWTESTMODE != '1'
name: Check tag reference
id: check_tag
uses: ./.github/actions/ghtagchk
with:
tag: 'Current-build'
builds:
needs: check_run
if: needs.check_run.outputs.runit
strategy:
matrix:
include:
# LINUX X64
- name: 'Linux x64'
suffix: 'lnx x64'
docbuild: ''
run_tests: '1'
image: 'ubuntu-22.04'
owtools: 'GCC'
args: 'gcc'
gitpath: 'rel'
# LINUX ARM64
- name: 'Linux arm64'
suffix: 'lnx a64'
docbuild: ''
run_tests: ''
image: 'ubuntu-24.04-arm'
owtools: 'GCC'
args: 'gcc'
gitpath: 'rel arml64'
# WINDOWS X64
- name: 'Windows x64'
suffix: 'nt x64'
docbuild: '1'
run_tests: '1'
image: 'windows-2022'
owtools: 'VISUALC'
args: 'vs2022'
gitpath: 'rel'
# OSX X64
- name: 'OSX x64'
suffix: 'osx x64'
docbuild: ''
run_tests: ''
image: 'macos-15-intel'
owtools: 'CLANG'
args: 'clang'
gitpath: 'rel bino64'
# OSX ARM64
- name: 'OSX arm64'
suffix: 'osx a64'
docbuild: ''
run_tests: ''
image: 'macos-15'
owtools: 'CLANG'
args: 'clang'
gitpath: 'rel armo64'
name: ${{matrix.name}} ${{matrix.args}}
uses: ./.github/workflows/buildx.yml
with:
args: ${{matrix.args}}
suffix: ${{matrix.suffix}} ${{matrix.args}}
gitpath: ${{matrix.gitpath}}
owtools: ${{matrix.owtools}}
image: ${{matrix.image}}
docbuild: ${{matrix.docbuild}}
run_tests: ${{matrix.run_tests}}
installers:
needs:
- builds
strategy:
matrix:
include:
- asset: instdos
title: 'Build DOS Installer'
- asset: instos2
title: 'Build OS/2 Installer'
- asset: instlnx32
title: 'Build Linux(32-bit) Installer'
- asset: instlnx64
title: 'Build Linux(64-bit) Installer'
- asset: instwin16
title: 'Build Windows(16-bit) Installer'
- asset: instwin32
title: 'Build Windows(32-bit) Installer'
- asset: instwin64
title: 'Build Windows(64-bit) Installer'
- asset: snapshot
title: 'Create OW snapshot'
gitpath: 'distrib ow bin'
name: ${{matrix.title}}
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- name: ${{matrix.title}}
uses: ./.github/actions/relload
with:
asset: ${{matrix.asset}}
suffix_nt: 'vs2022'
suffix_lnx: 'gcc'
suffix_osx: 'clang'
isrelrel: '1'
release:
needs: installers
name: Create GitHub Release
runs-on: ubuntu-latest
outputs:
drelid: ${{steps.relrel.outputs.relid}}
mrelid: ${{steps.mrelrel.outputs.relid}}
steps:
- name: checkout
uses: actions/checkout@v6
- name: GitHub Release
id: relrel
uses: ./.github/actions/release
with:
isrelrel: '1'
- name: GitHub Month Release
id: mrelrel
uses: ./.github/actions/releasem
- run: echo "drelid=${{steps.relrel.outputs.relid}};mrelid=${{steps.mrelrel.outputs.relid}}"
shell: bash
uploads:
needs: release
strategy:
matrix:
include:
- asset: instdos
title: 'DOS Installer'
- asset: instos2
title: 'OS/2 Installer'
- asset: instlnx32
title: 'Linux(32-bit) Installer'
- asset: instlnx64
title: 'Linux(64-bit) Installer'
- asset: instwin16
title: 'Windows(16-bit) Installer'
- asset: instwin32
title: 'Windows(32-bit) Installer'
- asset: instwin64
title: 'Windows(64-bit) Installer'
- asset: snapshot
title: 'OW snapshot'
name: Upload ${{matrix.title}}
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- run: echo "drelid=${{needs.release.outputs.drelid}};mrelid=${{needs.release.outputs.mrelid}}"
shell: bash
- name: Load asset files artifact
uses: ./.github/actions/artfload
with:
artifact: install ${{matrix.asset}}
gitpath: 'temp'
- name: Upload asset files (day release)
uses: ./.github/actions/ghassets
with:
relid: ${{needs.release.outputs.drelid}}
gitpath: 'temp'
- if: needs.release.outputs.mrelid != ''
name: Upload asset files (month release)
uses: ./.github/actions/ghassets
with:
relid: ${{needs.release.outputs.mrelid}}
gitpath: 'temp'
end-end:
needs: uploads
name: Call to delete Artifacts
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- if: vars.DELETEARTIFACTS == '1'
name: Call to delete Artifacs
uses: ./.github/actions/artfdelc