mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00

Some checks are pending
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
Workflow Lint / lint-yml-workflows (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
54 lines
2 KiB
YAML
54 lines
2 KiB
YAML
name: vlib modules CI
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'vlib/**.v'
|
|
- 'vlib/**.md'
|
|
- 'cmd/tools/vdoc/**.v'
|
|
- 'cmd/tools/vdoc/theme/**.js'
|
|
- 'cmd/tools/vdoc/theme/**.css'
|
|
- 'cmd/tools/vdoc/theme/**.svg'
|
|
- 'cmd/tools/vdoc/theme/**.html'
|
|
- '**/module_docs_ci.yml'
|
|
push:
|
|
paths:
|
|
- 'vlib/**.v'
|
|
- 'vlib/**.md'
|
|
- 'cmd/tools/vdoc/**.v'
|
|
- 'cmd/tools/vdoc/theme/**.js'
|
|
- 'cmd/tools/vdoc/theme/**.css'
|
|
- 'cmd/tools/vdoc/theme/**.svg'
|
|
- 'cmd/tools/vdoc/theme/**.html'
|
|
- '**/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.
|
|
concurrency:
|
|
group: module_docs-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ !contains(github.ref, 'master')}}
|
|
|
|
jobs:
|
|
build-module-docs:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Build V
|
|
run: make -j4 && ./v symlink
|
|
- name: Update packages, before running apt install
|
|
run: v retry -- sudo apt update -y -qq
|
|
- name: Install dependencies (some modules wrap C libs)
|
|
run: v retry -- sudo apt install --quiet -y libpq-dev
|
|
libsodium-dev libasound2-dev libssl-dev \
|
|
sqlite3 libsqlite3-dev libfreetype6-dev \
|
|
libx11-dev libxi-dev freeglut3-dev \
|
|
libgl1-mesa-dri libxcursor-dev libgl-dev libxrandr-dev
|
|
- name: Install markdown from vpm
|
|
run: v retry -- v install markdown
|
|
- name: Test v doc
|
|
run: ./v test cmd/tools/vdoc/
|
|
- name: Build module documentation and check the examples in the comments
|
|
run: ./v doc -m -f html -unsafe-run-examples -time vlib/
|
|
- name: Deploy docs to vercel
|
|
if: github.event_name == 'push' && github.repository == 'vlang/v' && github.ref == 'refs/heads/master'
|
|
run: npx vercel --confirm --prod --name vmodules --token ${{ secrets.VERCEL_TOKEN }} vlib/_docs/ || true
|