-
Notifications
You must be signed in to change notification settings - Fork 196
191 lines (184 loc) · 5.39 KB
/
cibuild.yml
File metadata and controls
191 lines (184 loc) · 5.39 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
name: CI-Build
run-name: CI Build
on:
pull_request:
branches: '*'
paths:
- '**'
- '!.github/**'
- '!README.md'
push:
branches:
- master
paths:
- '**'
- '!.github/**'
- '!README.md'
workflow_dispatch:
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
env:
OWDEBUG: "${{vars.DEBUG}}"
OWTESTMODE: "${{vars.TESTMODE}}"
OWCURLOPTS: "${{vars.CURLOPTS}}"
OWUSETARARCHIVE: '1'
jobs:
start-start:
if: github.repository == 'open-watcom/open-watcom-v2' || github.repository == vars.REPO
name: Check if to run
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
bootstrap-prev:
needs: start-start
strategy:
matrix:
include:
- name: 'OW 1.9 Windows'
verid: '1.9'
image: 'windows-2025-vs2026'
- name: 'OW 1.9 Linux'
verid: '1.9'
image: 'ubuntu-latest'
- name: 'OW 2.0 (2023) Windows'
verid: '2.0'
tag: '2023-01-01-Build'
image: 'windows-2025-vs2026'
- name: 'OW 2.0 (2023) Linux'
verid: '2.0'
tag: '2023-01-01-Build'
image: 'ubuntu-latest'
- name: 'OW 2.0 Windows'
verid: '2.0'
tag: ''
image: 'windows-2025-vs2026'
- name: 'OW 2.0 Linux'
verid: '2.0'
tag: ''
image: 'ubuntu-latest'
name: Bootstrap Test ${{matrix.name}}
runs-on: ${{matrix.image}}
steps:
- name: checkout
uses: actions/checkout@v6
- name: Set OW environment
uses: ./.github/actions/setowenv
with:
ow_version: ${{matrix.verid}}
ow_tag: ${{matrix.tag}}
- name: Test OW bootstrap
uses: ./.github/actions/testboot
builds:
needs:
- bootstrap-prev
strategy:
matrix:
include:
# LINUX X64 gcc
- name: 'Linux x64'
suffix: 'lnx x64'
docbuild: ''
run_tests: '1'
image: 'ubuntu-latest'
owtools: 'GCC'
args: 'gcc'
gitpath: 'rel'
# LINUX X64 clang
- name: 'Linux x64'
suffix: 'lnx x64'
docbuild: ''
run_tests: '1'
image: 'ubuntu-latest'
owtools: 'CLANG'
args: 'clang'
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-2025-vs2026'
owtools: 'VISUALC'
args: 'vs2026'
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}}
snapshot-both:
needs:
- builds
name: CI Release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- name: Load all release files and create snapshot
id: snapshot
uses: ./.github/actions/relload
with:
asset: 'snapshot'
suffix_nt: 'vs2026'
suffix_lnx: 'gcc'
suffix_osx: 'clang'
- if: github.event_name == 'pull_request' && env.OWTESTMODE != '1'
name: Upload snapshot (Pull Request)
uses: actions/upload-artifact@v6
with:
name: 'owsnapshot'
path: ${{steps.snapshot.outputs.fullname}}
retention-days: 14
overwrite: true
- if: github.event_name != 'pull_request'
id: relrel
name: GitHub CI-build Release
uses: ./.github/actions/release
- if: github.event_name != 'pull_request'
run: echo "relid=${{steps.relrel.outputs.relid}}"
shell: bash
- if: github.event_name != 'pull_request'
name: Upload asset files
uses: ./.github/actions/ghassets
with:
relid: ${{steps.relrel.outputs.relid}}
gitpath: 'distrib ow bin'
- if: vars.DELETEARTIFACTS == '1'
name: Call to delete Artifacts ${{github.event_name == 'pull_request' && '(Pull Request)' || '(Last CI Build)'}}
uses: ./.github/actions/artfdelc
with:
exclude: ${{github.event_name == 'pull_request' && 'owsnapshot' || ''}}