mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
ci: add docker to tools workflow, update ignore paths (#21368)
This commit is contained in:
parent
31171263df
commit
c0afe5dff3
17 changed files with 141 additions and 78 deletions
4
.github/workflows/c2v_ci.yml
vendored
4
.github/workflows/c2v_ci.yml
vendored
|
@ -9,6 +9,8 @@ on:
|
|||
- 'doc/**'
|
||||
- 'examples/**'
|
||||
- 'tutorials/**'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
|
@ -17,6 +19,8 @@ on:
|
|||
- 'doc/**'
|
||||
- 'examples/**'
|
||||
- 'tutorials/**'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
|
|
8
.github/workflows/cross_ci.yml
vendored
8
.github/workflows/cross_ci.yml
vendored
|
@ -3,14 +3,18 @@ name: Cross CI
|
|||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/cross_ci.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/cross_ci.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
|
|
12
.github/workflows/docker_alpine.yml
vendored
12
.github/workflows/docker_alpine.yml
vendored
|
@ -3,14 +3,18 @@ name: Docker Alpine MUSL CI
|
|||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- "**.yml"
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/docker_alpine.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- "**.yml"
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/docker_alpine.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
|
|
18
.github/workflows/docker_ubuntu.yml
vendored
18
.github/workflows/docker_ubuntu.yml
vendored
|
@ -3,14 +3,18 @@ name: Docker Ubuntu MUSL CI
|
|||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- "**.yml"
|
||||
- "!**/docker_ubuntu.yml"
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/docker_ubuntu.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- "**.yml"
|
||||
- "!**/docker_ubuntu.yml"
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/docker_ubuntu.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
|
@ -46,4 +50,4 @@ jobs:
|
|||
run: ./v test-cleancode
|
||||
|
||||
- name: Test V fixed tests
|
||||
run: ./v test-self
|
||||
run: ./v test-self vlib
|
||||
|
|
8
.github/workflows/gen_vc_ci.yml
vendored
8
.github/workflows/gen_vc_ci.yml
vendored
|
@ -5,16 +5,20 @@ on:
|
|||
paths-ignore:
|
||||
- '**.vv'
|
||||
- '**.out'
|
||||
- '**.yml'
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/gen_vc_ci.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
push:
|
||||
paths-ignore:
|
||||
- '**.vv'
|
||||
- '**.out'
|
||||
- '**.yml'
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/gen_vc_ci.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
|
||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||
|
|
20
.github/workflows/gg_regressions_ci.yml
vendored
20
.github/workflows/gg_regressions_ci.yml
vendored
|
@ -2,15 +2,19 @@ name: Graphics CI
|
|||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- '**.yml'
|
||||
- '!**/gg_regressions_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**'
|
||||
- 'thirdparty/**'
|
||||
- 'cmd/tools/builders/**.v'
|
||||
- '**/gg_regressions_ci.yml'
|
||||
- '!**.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- '**.yml'
|
||||
- '!**/gg_regressions_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**'
|
||||
- 'thirdparty/**'
|
||||
- 'cmd/tools/builders/**.v'
|
||||
- '**/gg_regressions_ci.yml'
|
||||
- '!**.md'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
|
|
5
.github/workflows/linux_ci.yml
vendored
5
.github/workflows/linux_ci.yml
vendored
|
@ -6,17 +6,16 @@ on:
|
|||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/linux_ci.yml'
|
||||
- 'cmd/tools'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/linux_ci.yml'
|
||||
- 'cmd/tools'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
|
4
.github/workflows/macos_ci.yml
vendored
4
.github/workflows/macos_ci.yml
vendored
|
@ -6,14 +6,14 @@ on:
|
|||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/macos_ci.yml'
|
||||
- 'cmd/tools'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/macos_ci.yml'
|
||||
- 'cmd/tools'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
|
||||
concurrency:
|
||||
|
|
20
.github/workflows/module_docs_ci.yml
vendored
20
.github/workflows/module_docs_ci.yml
vendored
|
@ -2,19 +2,15 @@ name: vlib modules CI
|
|||
|
||||
on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.vv'
|
||||
- '**.out'
|
||||
- '**.yml'
|
||||
- '**.md'
|
||||
- '!**/module_docs_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**.v'
|
||||
- 'vlib/**.md'
|
||||
- '**/module_docs_ci.yml'
|
||||
push:
|
||||
paths-ignore:
|
||||
- '**.vv'
|
||||
- '**.out'
|
||||
- '**.yml'
|
||||
- '**.md'
|
||||
- '!**/module_docs_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**.v'
|
||||
- 'vlib/**.md'
|
||||
- '**/module_docs_ci.yml'
|
||||
|
||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||
|
|
4
.github/workflows/other_ci.yml
vendored
4
.github/workflows/other_ci.yml
vendored
|
@ -6,11 +6,15 @@ on:
|
|||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/other_ci.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/other_ci.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
|
|
22
.github/workflows/sdl_ci.yml
vendored
22
.github/workflows/sdl_ci.yml
vendored
|
@ -3,15 +3,21 @@ name: sdl CI
|
|||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- "**.yml"
|
||||
- '!**/sdl_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**'
|
||||
- 'thirdparty/**'
|
||||
- 'cmd/tools/builders/**.v'
|
||||
- 'cmd/tools/vshader.v'
|
||||
- '**/sdl_ci.yml'
|
||||
- '!**.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- "**.yml"
|
||||
- '!**/sdl_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**'
|
||||
- 'thirdparty/**'
|
||||
- 'cmd/tools/builders/**.v'
|
||||
- 'cmd/tools/vshader.v'
|
||||
- '**/sdl_ci.yml'
|
||||
- '!**.md'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
|
|
18
.github/workflows/time_ci.yml
vendored
18
.github/workflows/time_ci.yml
vendored
|
@ -2,15 +2,17 @@ name: Time CI
|
|||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/time_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**'
|
||||
- 'cmd/tools/builders/**.v'
|
||||
- '**/time_ci.yml'
|
||||
- '!**.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/time_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**'
|
||||
- 'cmd/tools/builders/**.v'
|
||||
- '**/time_ci.yml'
|
||||
- '!**.md'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
|
|
16
.github/workflows/toml_ci.yml
vendored
16
.github/workflows/toml_ci.yml
vendored
|
@ -2,15 +2,15 @@ name: toml CI
|
|||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- '**.yml'
|
||||
- '!**/toml_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**'
|
||||
- '**/toml_ci.yml'
|
||||
- '!**.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- '**.yml'
|
||||
- '!**/toml_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**'
|
||||
- '**/toml_ci.yml'
|
||||
- '!**.md'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
|
|
25
.github/workflows/tools_ci.yml
vendored
25
.github/workflows/tools_ci.yml
vendored
|
@ -92,3 +92,28 @@ jobs:
|
|||
- name: Test (-cstrict)
|
||||
if: ${{ matrix.cc == 'msvc' }}
|
||||
run: ./v -W -cstrict test-self cmd
|
||||
|
||||
ubuntu-docker-musl:
|
||||
runs-on: ubuntu-20.04
|
||||
timeout-minutes: 121
|
||||
container:
|
||||
image: thevlang/vlang:ubuntu-build
|
||||
env:
|
||||
V_CI_MUSL: 1
|
||||
V_CI_UBUNTU_MUSL: 1
|
||||
VFLAGS: -cc musl-gcc -gc none
|
||||
volumes:
|
||||
- ${{github.workspace}}:/opt/vlang
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Build V
|
||||
run: make -j4 && ./v -cg -o v cmd/v
|
||||
- name: Verify `v test` works
|
||||
run: |
|
||||
./v cmd/tools/test_if_v_test_system_works.v
|
||||
./cmd/tools/test_if_v_test_system_works
|
||||
- name: Test
|
||||
run: ./v test-self cmd
|
||||
- name: Test (-cstrict)
|
||||
run: ./v -W -cstrict test-self cmd
|
||||
|
|
20
.github/workflows/vab_ci.yml
vendored
20
.github/workflows/vab_ci.yml
vendored
|
@ -3,15 +3,19 @@ name: vab CI
|
|||
on:
|
||||
workflow_call:
|
||||
push:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- '**.yml'
|
||||
- '!**/vab_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**'
|
||||
- 'thirdparty/**'
|
||||
- 'cmd/tools/builders/**.v'
|
||||
- '**/vab_ci.yml'
|
||||
- '!**.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- '**.yml'
|
||||
- '!**/vab_ci.yml'
|
||||
paths:
|
||||
- 'vlib/**'
|
||||
- 'thirdparty/**'
|
||||
- 'cmd/tools/builders/**.v'
|
||||
- '**/vab_ci.yml'
|
||||
- '!**.md'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
|
|
9
.github/workflows/websockets_ci.yml
vendored
9
.github/workflows/websockets_ci.yml
vendored
|
@ -3,14 +3,18 @@ name: Websockets CI
|
|||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/websockets_ci.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/websockets_ci.yml'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||
|
@ -95,4 +99,3 @@ jobs:
|
|||
with:
|
||||
name: client wss
|
||||
path: ${{github.workspace}}/reports_wss/clients/index.html
|
||||
|
||||
|
|
4
.github/workflows/windows_ci.yml
vendored
4
.github/workflows/windows_ci.yml
vendored
|
@ -6,14 +6,14 @@ on:
|
|||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/windows_ci.yml'
|
||||
- 'cmd/tools'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- '**.yml'
|
||||
- '!**/windows_ci.yml'
|
||||
- 'cmd/tools'
|
||||
- 'cmd/tools/**'
|
||||
- '!cmd/tools/builders/**.v'
|
||||
|
||||
concurrency:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue