Skip to content

Commit c0afe5d

Browse files
authored
ci: add docker to tools workflow, update ignore paths (#21368)
1 parent 3117126 commit c0afe5d

17 files changed

+141
-78
lines changed

.github/workflows/c2v_ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
- 'doc/**'
1010
- 'examples/**'
1111
- 'tutorials/**'
12+
- 'cmd/tools/**'
13+
- '!cmd/tools/builders/**.v'
1214
pull_request:
1315
paths-ignore:
1416
- '**.md'
@@ -17,6 +19,8 @@ on:
1719
- 'doc/**'
1820
- 'examples/**'
1921
- 'tutorials/**'
22+
- 'cmd/tools/**'
23+
- '!cmd/tools/builders/**.v'
2024

2125
concurrency:
2226
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}

.github/workflows/cross_ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ name: Cross CI
33
on:
44
push:
55
paths-ignore:
6-
- "**.md"
6+
- '**.md'
77
- '**.yml'
88
- '!**/cross_ci.yml'
9+
- 'cmd/tools/**'
10+
- '!cmd/tools/builders/**.v'
911
pull_request:
1012
paths-ignore:
11-
- "**.md"
13+
- '**.md'
1214
- '**.yml'
1315
- '!**/cross_ci.yml'
16+
- 'cmd/tools/**'
17+
- '!cmd/tools/builders/**.v'
1418

1519
concurrency:
1620
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}

.github/workflows/docker_alpine.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ name: Docker Alpine MUSL CI
33
on:
44
push:
55
paths-ignore:
6-
- "**.md"
7-
- "**.yml"
6+
- '**.md'
7+
- '**.yml'
88
- '!**/docker_alpine.yml'
9+
- 'cmd/tools/**'
10+
- '!cmd/tools/builders/**.v'
911
pull_request:
1012
paths-ignore:
11-
- "**.md"
12-
- "**.yml"
13+
- '**.md'
14+
- '**.yml'
1315
- '!**/docker_alpine.yml'
16+
- 'cmd/tools/**'
17+
- '!cmd/tools/builders/**.v'
1418

1519
concurrency:
1620
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}

.github/workflows/docker_ubuntu.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ name: Docker Ubuntu MUSL CI
33
on:
44
push:
55
paths-ignore:
6-
- "**.md"
7-
- "**.yml"
8-
- "!**/docker_ubuntu.yml"
6+
- '**.md'
7+
- '**.yml'
8+
- '!**/docker_ubuntu.yml'
9+
- 'cmd/tools/**'
10+
- '!cmd/tools/builders/**.v'
911
pull_request:
1012
paths-ignore:
11-
- "**.md"
12-
- "**.yml"
13-
- "!**/docker_ubuntu.yml"
13+
- '**.md'
14+
- '**.yml'
15+
- '!**/docker_ubuntu.yml'
16+
- 'cmd/tools/**'
17+
- '!cmd/tools/builders/**.v'
1418

1519
concurrency:
1620
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
@@ -46,4 +50,4 @@ jobs:
4650
run: ./v test-cleancode
4751

4852
- name: Test V fixed tests
49-
run: ./v test-self
53+
run: ./v test-self vlib

.github/workflows/gen_vc_ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@ on:
55
paths-ignore:
66
- '**.vv'
77
- '**.out'
8-
- '**.yml'
98
- '**.md'
9+
- '**.yml'
1010
- '!**/gen_vc_ci.yml'
11+
- 'cmd/tools/**'
12+
- '!cmd/tools/builders/**.v'
1113
push:
1214
paths-ignore:
1315
- '**.vv'
1416
- '**.out'
15-
- '**.yml'
1617
- '**.md'
18+
- '**.yml'
1719
- '!**/gen_vc_ci.yml'
20+
- 'cmd/tools/**'
21+
- '!cmd/tools/builders/**.v'
1822

1923
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2024
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.

.github/workflows/gg_regressions_ci.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@ name: Graphics CI
22

33
on:
44
push:
5-
paths-ignore:
6-
- "**.md"
7-
- '**.yml'
8-
- '!**/gg_regressions_ci.yml'
5+
paths:
6+
- 'vlib/**'
7+
- 'thirdparty/**'
8+
- 'cmd/tools/builders/**.v'
9+
- '**/gg_regressions_ci.yml'
10+
- '!**.md'
911
pull_request:
10-
paths-ignore:
11-
- "**.md"
12-
- '**.yml'
13-
- '!**/gg_regressions_ci.yml'
12+
paths:
13+
- 'vlib/**'
14+
- 'thirdparty/**'
15+
- 'cmd/tools/builders/**.v'
16+
- '**/gg_regressions_ci.yml'
17+
- '!**.md'
1418

1519
concurrency:
1620
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}

.github/workflows/linux_ci.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ on:
66
- '**.md'
77
- '**.yml'
88
- '!**/linux_ci.yml'
9-
- 'cmd/tools'
9+
- 'cmd/tools/**'
1010
- '!cmd/tools/builders/**.v'
1111
pull_request:
1212
paths-ignore:
1313
- '**.md'
1414
- '**.yml'
1515
- '!**/linux_ci.yml'
16-
- 'cmd/tools'
16+
- 'cmd/tools/**'
1717
- '!cmd/tools/builders/**.v'
1818

19-
2019
concurrency:
2120
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
2221
cancel-in-progress: true

.github/workflows/macos_ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
- '**.md'
77
- '**.yml'
88
- '!**/macos_ci.yml'
9-
- 'cmd/tools'
9+
- 'cmd/tools/**'
1010
- '!cmd/tools/builders/**.v'
1111
pull_request:
1212
paths-ignore:
1313
- '**.md'
1414
- '**.yml'
1515
- '!**/macos_ci.yml'
16-
- 'cmd/tools'
16+
- 'cmd/tools/**'
1717
- '!cmd/tools/builders/**.v'
1818

1919
concurrency:

.github/workflows/module_docs_ci.yml

+8-12
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,15 @@ name: vlib modules CI
22

33
on:
44
pull_request:
5-
paths-ignore:
6-
- '**.vv'
7-
- '**.out'
8-
- '**.yml'
9-
- '**.md'
10-
- '!**/module_docs_ci.yml'
5+
paths:
6+
- 'vlib/**.v'
7+
- 'vlib/**.md'
8+
- '**/module_docs_ci.yml'
119
push:
12-
paths-ignore:
13-
- '**.vv'
14-
- '**.out'
15-
- '**.yml'
16-
- '**.md'
17-
- '!**/module_docs_ci.yml'
10+
paths:
11+
- 'vlib/**.v'
12+
- 'vlib/**.md'
13+
- '**/module_docs_ci.yml'
1814

1915
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2016
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.

.github/workflows/other_ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ on:
66
- '**.md'
77
- '**.yml'
88
- '!**/other_ci.yml'
9+
- 'cmd/tools/**'
10+
- '!cmd/tools/builders/**.v'
911
pull_request:
1012
paths-ignore:
1113
- '**.md'
1214
- '**.yml'
1315
- '!**/other_ci.yml'
16+
- 'cmd/tools/**'
17+
- '!cmd/tools/builders/**.v'
1418

1519
concurrency:
1620
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}

.github/workflows/sdl_ci.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@ name: sdl CI
33
on:
44
workflow_dispatch:
55
push:
6-
paths-ignore:
7-
- "**.md"
8-
- "**.yml"
9-
- '!**/sdl_ci.yml'
6+
paths:
7+
- 'vlib/**'
8+
- 'thirdparty/**'
9+
- 'cmd/tools/builders/**.v'
10+
- 'cmd/tools/vshader.v'
11+
- '**/sdl_ci.yml'
12+
- '!**.md'
1013
pull_request:
11-
paths-ignore:
12-
- "**.md"
13-
- "**.yml"
14-
- '!**/sdl_ci.yml'
14+
paths:
15+
- 'vlib/**'
16+
- 'thirdparty/**'
17+
- 'cmd/tools/builders/**.v'
18+
- 'cmd/tools/vshader.v'
19+
- '**/sdl_ci.yml'
20+
- '!**.md'
1521

1622
concurrency:
1723
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}

.github/workflows/time_ci.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ name: Time CI
22

33
on:
44
push:
5-
paths-ignore:
6-
- '**.md'
7-
- '**.yml'
8-
- '!**/time_ci.yml'
5+
paths:
6+
- 'vlib/**'
7+
- 'cmd/tools/builders/**.v'
8+
- '**/time_ci.yml'
9+
- '!**.md'
910
pull_request:
10-
paths-ignore:
11-
- '**.md'
12-
- '**.yml'
13-
- '!**/time_ci.yml'
11+
paths:
12+
- 'vlib/**'
13+
- 'cmd/tools/builders/**.v'
14+
- '**/time_ci.yml'
15+
- '!**.md'
1416

1517
concurrency:
1618
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}

.github/workflows/toml_ci.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: toml CI
22

33
on:
44
push:
5-
paths-ignore:
6-
- "**.md"
7-
- '**.yml'
8-
- '!**/toml_ci.yml'
5+
paths:
6+
- 'vlib/**'
7+
- '**/toml_ci.yml'
8+
- '!**.md'
99
pull_request:
10-
paths-ignore:
11-
- "**.md"
12-
- '**.yml'
13-
- '!**/toml_ci.yml'
10+
paths:
11+
- 'vlib/**'
12+
- '**/toml_ci.yml'
13+
- '!**.md'
1414

1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}

.github/workflows/tools_ci.yml

+25
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,28 @@ jobs:
9292
- name: Test (-cstrict)
9393
if: ${{ matrix.cc == 'msvc' }}
9494
run: ./v -W -cstrict test-self cmd
95+
96+
ubuntu-docker-musl:
97+
runs-on: ubuntu-20.04
98+
timeout-minutes: 121
99+
container:
100+
image: thevlang/vlang:ubuntu-build
101+
env:
102+
V_CI_MUSL: 1
103+
V_CI_UBUNTU_MUSL: 1
104+
VFLAGS: -cc musl-gcc -gc none
105+
volumes:
106+
- ${{github.workspace}}:/opt/vlang
107+
steps:
108+
- name: Checkout
109+
uses: actions/checkout@v4
110+
- name: Build V
111+
run: make -j4 && ./v -cg -o v cmd/v
112+
- name: Verify `v test` works
113+
run: |
114+
./v cmd/tools/test_if_v_test_system_works.v
115+
./cmd/tools/test_if_v_test_system_works
116+
- name: Test
117+
run: ./v test-self cmd
118+
- name: Test (-cstrict)
119+
run: ./v -W -cstrict test-self cmd

.github/workflows/vab_ci.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ name: vab CI
33
on:
44
workflow_call:
55
push:
6-
paths-ignore:
7-
- "**.md"
8-
- '**.yml'
9-
- '!**/vab_ci.yml'
6+
paths:
7+
- 'vlib/**'
8+
- 'thirdparty/**'
9+
- 'cmd/tools/builders/**.v'
10+
- '**/vab_ci.yml'
11+
- '!**.md'
1012
pull_request:
11-
paths-ignore:
12-
- "**.md"
13-
- '**.yml'
14-
- '!**/vab_ci.yml'
13+
paths:
14+
- 'vlib/**'
15+
- 'thirdparty/**'
16+
- 'cmd/tools/builders/**.v'
17+
- '**/vab_ci.yml'
18+
- '!**.md'
1519

1620
concurrency:
1721
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}

.github/workflows/websockets_ci.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ name: Websockets CI
33
on:
44
push:
55
paths-ignore:
6-
- "**.md"
6+
- '**.md'
77
- '**.yml'
88
- '!**/websockets_ci.yml'
9+
- 'cmd/tools/**'
10+
- '!cmd/tools/builders/**.v'
911
pull_request:
1012
paths-ignore:
11-
- "**.md"
13+
- '**.md'
1214
- '**.yml'
1315
- '!**/websockets_ci.yml'
16+
- 'cmd/tools/**'
17+
- '!cmd/tools/builders/**.v'
1418

1519
concurrency:
1620
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
@@ -37,7 +41,7 @@ jobs:
3741
- name: Run websockets tests
3842
run: ./v -g test vlib/net/websocket/
3943

40-
## Autobahn integrations tests
44+
## Autobahn integrations tests
4145
- name: Run autobahn services
4246
run: docker-compose -f ${{github.workspace}}/vlib/net/websocket/tests/autobahn/docker-compose.yml up -d
4347

@@ -95,4 +99,3 @@ jobs:
9599
with:
96100
name: client wss
97101
path: ${{github.workspace}}/reports_wss/clients/index.html
98-

0 commit comments

Comments
 (0)