Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add docker to tools workflow, update ignore paths #21368

Merged
merged 6 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/c2v_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
- 'doc/**'
- 'examples/**'
- 'tutorials/**'
- 'cmd/tools/**'
- '!cmd/tools/builders/**.v'
pull_request:
paths-ignore:
- '**.md'
Expand All @@ -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 }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/cross_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/docker_alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/docker_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/gen_vc_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/gg_regressions_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/linux_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/module_docs_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@ name: vlib modules CI

on:
pull_request:
paths-ignore:
- '**.vv'
- '**.out'
- '**.yml'
- '**.md'
- '!**/module_docs_ci.yml'
paths:
- 'vlib/**.v'
- '**/module_docs_ci.yml'
spytheman marked this conversation as resolved.
Show resolved Hide resolved
push:
paths-ignore:
- '**.vv'
- '**.out'
- '**.yml'
- '**.md'
- '!**/module_docs_ci.yml'
paths:
- 'vlib/**.v'
- '**/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.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/other_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/sdl_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@ name: sdl CI
on:
workflow_dispatch:
push:
paths-ignore:
- "**.md"
- "**.yml"
- '!**/sdl_ci.yml'
paths:
- 'vlib/**'
- 'thirdparty/**'
- 'cmd/tools/builders/**.v'
- '**/sdl_ci.yml'
- '!**.md'
pull_request:
paths-ignore:
- "**.md"
- "**.yml"
- '!**/sdl_ci.yml'
paths:
- 'vlib/**'
- 'thirdparty/**'
- 'cmd/tools/builders/**.v'
- '**/sdl_ci.yml'
- '!**.md'
ttytm marked this conversation as resolved.
Show resolved Hide resolved

concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/time_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/toml_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/tools_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
spytheman marked this conversation as resolved.
Show resolved Hide resolved
20 changes: 12 additions & 8 deletions .github/workflows/vab_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/websockets_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -37,7 +41,7 @@ jobs:
- name: Run websockets tests
run: ./v -g test vlib/net/websocket/

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

Expand Down Expand Up @@ -95,4 +99,3 @@ jobs:
with:
name: client wss
path: ${{github.workspace}}/reports_wss/clients/index.html

Loading