-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
218 lines (212 loc) · 6.73 KB
/
windows_ci.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
name: CI Windows
on:
push:
paths-ignore:
- '**.md'
- '**.yml'
- '!**.bat'
- '!**/windows_ci.yml'
- 'cmd/tools/**'
- '!cmd/tools/builders/**.v'
pull_request:
paths-ignore:
- '**.md'
- '**.yml'
- '!**.bat'
- '!**/windows_ci.yml'
- '!**/windows-install-sqlite.bat'
- 'cmd/tools/**'
- '!cmd/tools/builders/**.v'
concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
cancel-in-progress: true
jobs:
gcc:
runs-on: windows-2019
timeout-minutes: 271
env:
VFLAGS: -cc gcc
VERBOSE_MAKE: 1
steps:
- uses: actions/checkout@v4
- name: Build
run: |
gcc --version
.\make.bat -gcc
.\v.exe symlink
- name: All code is formatted
run: v test-cleancode
- name: Test new v.c
run: |
v -o v.c cmd/v
gcc -Werror -municode -w v.c -lws2_32
- name: Install dependencies
run: |
v setup-freetype
.\.github\workflows\windows-install-sqlite.bat
- name: v doctor
run: |
v doctor
- name: Verify `v test` works
run: |
echo $VFLAGS
v cmd/tools/test_if_v_test_system_works.v
./cmd/tools/test_if_v_test_system_works
- name: Test pure V math module
run: v -exclude @vlib/math/*.c.v test vlib/math/
- name: Self tests
run: v test-self vlib
# - name: Test
# run: v test-all
- name: Build option_test.c.v with -autofree
run: v -autofree vlib/v/tests/option_test.c.v
- name: Test v->js
run: v -o hi.js examples/hello_v_js.v && node hi.js
- name: Test v binaries
run: v build-vbinaries
- name: Build examples
run: v build-examples
- name: v2 self compilation
run: v -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
- name: compile vdoctor.v with -skip-unused and -prod
run: v -showcc -skip-unused -prod cmd/tools/vdoctor.v
- name: compile vup.v with -skip-unused and -prod
run: v -showcc -skip-unused -prod cmd/tools/vup.v
msvc:
runs-on: windows-2019
timeout-minutes: 271
env:
VFLAGS: -cc msvc
VERBOSE_MAKE: 1
steps:
- uses: actions/checkout@v4
- name: Build
run: |
echo %VFLAGS%
echo $VFLAGS
.\make.bat -msvc
.\v.exe symlink
- name: Build V with WX
run: v -cflags /WX self
- name: All code is formatted
run: v test-cleancode
- name: Install dependencies
run: |
v setup-freetype
.\.github\workflows\windows-install-sqlite.bat
- name: v doctor
run: |
v doctor
- name: Verify `v test` works
run: |
echo $VFLAGS
v cmd/tools/test_if_v_test_system_works.v
./cmd/tools/test_if_v_test_system_works
- name: Test pure V math module
run: v -exclude @vlib/math/*.c.v test vlib/math/
- name: Self tests
run: |
v -cg cmd\tools\vtest-self.v
v test-self vlib
# - name: Test
# run: v test-all
- name: Test v->js
run: v -o hi.js examples/hello_v_js.v && node hi.js
- name: Test v binaries
run: v build-vbinaries
- name: Build examples
run: v build-examples
- name: v2 self compilation
run: v -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
tcc:
runs-on: windows-2019
timeout-minutes: 181
env:
VFLAGS: -cc tcc -no-retry-compilation
VJOBS: 1
VTEST_SHOW_START: 1
VERBOSE_MAKE: 1
steps:
- uses: actions/checkout@v4
- name: Build with make.bat -tcc
run: |
.\make.bat -tcc
.\v.exe symlink
- name: All code is formatted
run: v test-cleancode
- name: Test new v.c
run: |
v -o v.c cmd/v
.\thirdparty\tcc\tcc.exe -Werror -w -ladvapi32 -lws2_32 -bt10 v.c
- name: Install dependencies
run: |
v setup-freetype
.\.github\workflows\windows-install-sqlite.bat
- name: v doctor
run: |
v doctor
- name: Verify `v test` works
run: |
v cmd/tools/test_if_v_test_system_works.v
.\cmd\tools\test_if_v_test_system_works.exe
- name: Verify `v vlib/v/gen/c/coutput_test.v` works
run: v vlib/v/gen/c/coutput_test.v
- name: Make sure running TCC64 instead of TCC32
run: v test .github\workflows\make_sure_ci_run_with_64bit_compiler_test.v
- name: Test ./v doc -v clipboard *BEFORE building tools*
run: v doc -v clipboard
- name: Test v build-tools
run: v -W build-tools
- name: Test pure V math module
run: v -exclude @vlib/math/*.c.v test vlib/math/
- name: Self tests
run: v test-self vlib
- name: Test v->js
run: v -o hi.js examples/hello_v_js.v && node hi.js
- name: Test v binaries
run: v build-vbinaries
- name: Build examples
run: v build-examples
- name: v2 self compilation
run: v -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v && .\v3.exe -o v4.exe cmd/v
- name: v2 self compilation with -gc boehm
run: v -o v2.exe -gc boehm cmd/v && .\v2.exe -o v3.exe -gc boehm cmd/v && .\v3.exe -o v4.exe -gc boehm cmd/v
## tcc32
# - name: Build with make.bat -tcc32
# run: |
# Remove-Item -Recurse -Force .\thirdparty\tcc
# v wipe-cache
# .\make.bat -tcc32
# - name: Test new v.c
# run: v -o v.c cmd/v && .\thirdparty\tcc\tcc.exe -Werror -g -w -ladvapi32 -lws2_32 -bt10 v.c
# - name: v doctor
# run: v doctor
#
# - name: Verify `v test` works
# run: |
# v cmd/tools/test_if_v_test_system_works.v
# .\cmd\tools\test_if_v_test_system_works.exe
#
# - name: Verify `v vlib/v/gen/c/coutput_test.v` works
# run: |
# v vlib/v/gen/c/coutput_test.v
#
# - name: Make sure running TCC32 instead of TCC64
# run: v -stats .github\workflows\make_sure_ci_run_with_32bit_compiler_test.v
#
# - name: Test v build-tools
# run: v -W build-tools
#
# - name: Test ./v doc clipboard
# run: v doc clipboard
#
# - name: Self tests
# run: v test-self vlib
# - name: Test v->js
# run: v -o hi.js examples/hello_v_js.v && node hi.js
# - name: Test v binaries
# run: v build-vbinaries
# - name: Build examples
# run: v build-examples
# - name: v2 self compilation
# run: v -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v