Skip to content

Commit 087a1c2

Browse files
committed
ci: extract and split windows_ci_tcc.yml and windows_ci_gcc.yml from windows_ci.yml for improved job control
1 parent 2a565ae commit 087a1c2

2 files changed

Lines changed: 82 additions & 57 deletions

File tree

Lines changed: 3 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
name: CI Windows
1+
name: CI Windows GCC
22

33
on:
44
push:
55
paths-ignore:
66
- '**.md'
77
- '**.yml'
88
- '!**.bat'
9-
- '!**/windows_ci.yml'
9+
- '!**/windows_ci_gcc.yml'
1010
- 'cmd/tools/**'
1111
- '!cmd/tools/builders/**.v'
1212
pull_request:
1313
paths-ignore:
1414
- '**.md'
1515
- '**.yml'
1616
- '!**.bat'
17-
- '!**/windows_ci.yml'
17+
- '!**/windows_ci_gcc.yml'
1818
- '!**/windows-install-sqlite.bat'
1919
- 'cmd/tools/**'
2020
- '!cmd/tools/builders/**.v'
@@ -91,57 +91,3 @@ jobs:
9191
run: v -showcc -prod cmd/tools/vdoctor.v
9292
- name: compile vup.v with -prod
9393
run: v -showcc -prod cmd/tools/vup.v
94-
95-
tcc-windows:
96-
runs-on: windows-2022
97-
timeout-minutes: 60
98-
env:
99-
VFLAGS: -cc tcc -no-retry-compilation
100-
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
101-
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
102-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
103-
steps:
104-
- uses: actions/checkout@v6
105-
- name: Build with make.bat -tcc
106-
run: |
107-
.\make.bat -tcc
108-
.\v.exe symlink
109-
- name: All code is formatted
110-
run: v -silent test-cleancode
111-
- name: Test new v.c
112-
run: |
113-
v -o v.c cmd/v
114-
.\thirdparty\tcc\tcc.exe -Werror -w -ladvapi32 -lws2_32 -bt10 v.c
115-
- name: Install dependencies
116-
run: |
117-
v retry -- v setup-freetype
118-
.\.github\workflows\windows-install-sqlite.bat
119-
- name: v -g self
120-
run: v -g self
121-
- name: v doctor
122-
run: |
123-
v doctor
124-
- name: Verify `v test` works
125-
run: |
126-
v cmd/tools/test_if_v_test_system_works.v
127-
.\cmd\tools\test_if_v_test_system_works.exe
128-
- name: Verify `v vlib/v/gen/c/coutput_test.v` works
129-
run: v vlib/v/gen/c/coutput_test.v
130-
- name: Make sure running TCC64 instead of TCC32
131-
run: v test .github\workflows\make_sure_ci_run_with_64bit_compiler_test.v
132-
- name: Test ./v doc -v clipboard *BEFORE building tools*
133-
run: v doc -v clipboard
134-
- name: Test v build-tools
135-
run: v -silent -W build-tools
136-
- name: Test pure V math module
137-
run: v -silent -exclude @vlib/math/*.c.v test vlib/math/
138-
- name: Self tests
139-
run: v -silent test-self vlib
140-
- name: Test v->js
141-
run: v -o hi.js examples/js_hello_world.v && node hi.js
142-
- name: Test v binaries
143-
run: v build-vbinaries
144-
- name: Build examples
145-
run: v build-examples
146-
- name: v2 self compilation
147-
run: v -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v && .\v3.exe -o v4.exe cmd/v
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: CI Windows TCC
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**.md'
7+
- '**.yml'
8+
- '!**.bat'
9+
- '!**/windows_ci_tcc.yml'
10+
- 'cmd/tools/**'
11+
- '!cmd/tools/builders/**.v'
12+
pull_request:
13+
paths-ignore:
14+
- '**.md'
15+
- '**.yml'
16+
- '!**.bat'
17+
- '!**/windows_ci_tcc.yml'
18+
- '!**/windows-install-sqlite.bat'
19+
- 'cmd/tools/**'
20+
- '!cmd/tools/builders/**.v'
21+
22+
concurrency:
23+
group: windows-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
tcc-windows:
28+
runs-on: windows-2022
29+
timeout-minutes: 60
30+
env:
31+
VFLAGS: -cc tcc -no-retry-compilation
32+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
33+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
34+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
35+
steps:
36+
- uses: actions/checkout@v6
37+
- name: Build with make.bat -tcc
38+
run: |
39+
.\make.bat -tcc
40+
.\v.exe symlink
41+
- name: All code is formatted
42+
run: v -silent test-cleancode
43+
- name: Test new v.c
44+
run: |
45+
v -o v.c cmd/v
46+
.\thirdparty\tcc\tcc.exe -Werror -w -ladvapi32 -lws2_32 -bt10 v.c
47+
- name: Install dependencies
48+
run: |
49+
v retry -- v setup-freetype
50+
.\.github\workflows\windows-install-sqlite.bat
51+
- name: v -g self
52+
run: v -g self
53+
- name: v doctor
54+
run: |
55+
v doctor
56+
- name: Verify `v test` works
57+
run: |
58+
v cmd/tools/test_if_v_test_system_works.v
59+
.\cmd\tools\test_if_v_test_system_works.exe
60+
- name: Verify `v vlib/v/gen/c/coutput_test.v` works
61+
run: v vlib/v/gen/c/coutput_test.v
62+
- name: Make sure running TCC64 instead of TCC32
63+
run: v test .github\workflows\make_sure_ci_run_with_64bit_compiler_test.v
64+
- name: Test ./v doc -v clipboard *BEFORE building tools*
65+
run: v doc -v clipboard
66+
- name: Test v build-tools
67+
run: v -silent -W build-tools
68+
- name: Test pure V math module
69+
run: v -silent -exclude @vlib/math/*.c.v test vlib/math/
70+
- name: Self tests
71+
run: v -silent test-self vlib
72+
- name: Test v->js
73+
run: v -o hi.js examples/js_hello_world.v && node hi.js
74+
- name: Test v binaries
75+
run: v build-vbinaries
76+
- name: Build examples
77+
run: v build-examples
78+
- name: v2 self compilation
79+
run: v -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v && .\v3.exe -o v4.exe cmd/v

0 commit comments

Comments
 (0)