mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
cleanup, use .github/actions/cache-apt-packages-action/action.yml in more places
This commit is contained in:
parent
f638c6e17c
commit
e266c32007
28 changed files with 61 additions and 140 deletions
2
.github/workflows/alpine.build.sh
vendored
2
.github/workflows/alpine.build.sh
vendored
|
@ -6,7 +6,7 @@ pwd
|
|||
|
||||
uname -a
|
||||
|
||||
make -j4
|
||||
make
|
||||
|
||||
./v version
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ jobs:
|
|||
uses: actions/checkout@v5
|
||||
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
|
||||
- name: Run V benchmark and save output
|
||||
run: (echo '```sh'; v -prod crun vlib/x/json2/decoder2/tests/bench.v; echo '```') > vlib/x/json2/decoder2/tests/bench_out.md
|
||||
|
|
|
@ -18,7 +18,7 @@ jobs:
|
|||
uses: actions/checkout@v5
|
||||
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
|
||||
- name: Run V benchmark and save output
|
||||
run: (echo '```sh'; v -prod crun vlib/v/tests/bench/bench_json_vs_json2.v; echo '```') > vlib/v/tests/bench/bench_json_vs_json2_out.md
|
||||
|
|
2
.github/workflows/bootstrapping_ci.yml
vendored
2
.github/workflows/bootstrapping_ci.yml
vendored
|
@ -43,7 +43,7 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
- name: Build V
|
||||
run: make -j4
|
||||
run: make
|
||||
- name: Test bootstrapping (v.c can be compiled and run with -os cross)
|
||||
run: |
|
||||
ls -la v vc/v.c
|
||||
|
|
24
.github/workflows/c2v_ci.yml
vendored
24
.github/workflows/c2v_ci.yml
vendored
|
@ -32,6 +32,7 @@ jobs:
|
|||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make && ./v symlink
|
||||
|
||||
|
@ -47,15 +48,6 @@ jobs:
|
|||
run: |
|
||||
v retry -- v install --git https://github.com/vlang/c2v
|
||||
v -g ~/.vmodules/c2v/ || true
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
if [ "${{ runner.os }}" == "Linux" ]; then
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
v retry -- sudo apt update -y -qq
|
||||
v retry -- sudo apt install libsdl2-dev libsdl2-mixer-dev libsdl2-net-dev libpng-dev libsamplerate0-dev
|
||||
else
|
||||
v retry -- brew install sdl2 sdl2_mixer sdl2_net libpng libsamplerate
|
||||
fi
|
||||
- name: Build original Chocolate Doom
|
||||
run: |
|
||||
v retry -- git clone --quiet --depth 1 https://github.com/vlang/doom ~/code/doom
|
||||
|
@ -77,6 +69,7 @@ jobs:
|
|||
VTMP: /tmp
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make && ./v symlink
|
||||
|
||||
|
@ -92,19 +85,6 @@ jobs:
|
|||
run: |
|
||||
v retry -- v install --git https://github.com/vlang/c2v
|
||||
v -g ~/.vmodules/c2v/ || true
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
v retry -- sudo apt update -y -qq
|
||||
v retry -- sudo apt install libsdl2-dev libsdl2-mixer-dev libsdl2-net-dev libpng-dev libsamplerate0-dev
|
||||
# c2v / DOOM dependencies
|
||||
# vgret dependencies
|
||||
# imagemagick : convert, mogrify, import
|
||||
# xvfb : For starting X11 Virtual FrameBuffers
|
||||
# openimageio-tools : idiff
|
||||
# libgl1-mesa-dri : For headless rendering / software DRI driver (LIBGL_ALWAYS_SOFTWARE=true)
|
||||
# freeglut3-dev : Fixes graphic apps compilation with tcc
|
||||
v retry -- sudo apt install imagemagick openimageio-tools freeglut3-dev libgl1-mesa-dri xvfb xsel xclip
|
||||
- name: Setup test tools
|
||||
run: |
|
||||
# Fetch the free ~4MB DOOM1.WAD from the link at https://doomwiki.org/wiki/DOOM1.WAD
|
||||
|
|
7
.github/workflows/cross_ci.yml
vendored
7
.github/workflows/cross_ci.yml
vendored
|
@ -31,7 +31,7 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 10
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
@ -60,14 +60,15 @@ jobs:
|
|||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 10
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build v
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
./v retry -- sudo apt update -y -qq
|
||||
./v retry -- sudo apt install --quiet -y mingw-w64 wine wine64 winetricks libssl-dev sqlite3 libsqlite3-dev
|
||||
./v retry -- sudo apt install --quiet -y mingw-w64 wine wine64 winetricks
|
||||
|
||||
- name: Show diagnostics for wine
|
||||
run: |
|
||||
|
|
2
.github/workflows/docker_ci.yml
vendored
2
.github/workflows/docker_ci.yml
vendored
|
@ -67,7 +67,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
run: echo "$VFLAGS" && make -j4 && ./v -cg -o v cmd/v
|
||||
run: echo "$VFLAGS" && make && ./v -cg -o v cmd/v
|
||||
- name: Verify `v test` works
|
||||
run: |
|
||||
echo "$VFLAGS"
|
||||
|
|
3
.github/workflows/docs_ci.yml
vendored
3
.github/workflows/docs_ci.yml
vendored
|
@ -26,10 +26,9 @@ jobs:
|
|||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make
|
||||
- name: Install dependencies (some examples show how to use sqlite and the x11 clipboard)
|
||||
run: ./v retry -- sudo apt install --quiet -y libx11-dev libssl-dev sqlite3 libsqlite3-dev
|
||||
- name: Check markdown line length & code examples
|
||||
run: ./v check-md -hide-warnings .
|
||||
## NB: -hide-warnings is used here, so that the output is less noisy,
|
||||
|
|
2
.github/workflows/gen_vc_ci.yml
vendored
2
.github/workflows/gen_vc_ci.yml
vendored
|
@ -34,7 +34,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
run: make -j4
|
||||
run: make
|
||||
- name: Regenerate v.c and v_win.c
|
||||
run: |
|
||||
git config --global user.email "vlang-bot@users.noreply.github.com"
|
||||
|
|
12
.github/workflows/gg_regressions_ci.yml
vendored
12
.github/workflows/gg_regressions_ci.yml
vendored
|
@ -32,21 +32,13 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout V
|
||||
uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
|
||||
- name: Build local v
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
|
||||
- name: Setup dependencies
|
||||
run: |
|
||||
# imagemagick : convert, mogrify
|
||||
# xvfb : xvfb
|
||||
# openimageio-tools : idiff
|
||||
# libxcursor-dev libxi-dev : V gfx deps
|
||||
# libgl1-mesa-dri : For headless rendering / software DRI driver (LIBGL_ALWAYS_SOFTWARE=true)
|
||||
# freeglut3-dev : Fixes graphic apps compilation with tcc
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
./v retry -- sudo apt update
|
||||
./v retry -- sudo apt install imagemagick openimageio-tools libgl1-mesa-dri xvfb libxcursor-dev libxi-dev libxrandr-dev freeglut3-dev xsel xclip
|
||||
./v retry -- ./v download https://raw.githubusercontent.com/tremby/imgur.sh/c98345d/imgur.sh
|
||||
./v retry -- git clone https://github.com/Larpon/gg-regression-images gg-regression-images
|
||||
chmod +x ./imgur.sh
|
||||
|
|
6
.github/workflows/linux_ci.yml
vendored
6
.github/workflows/linux_ci.yml
vendored
|
@ -31,7 +31,7 @@ jobs:
|
|||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build v
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: Build v with -prealloc
|
||||
run: v run ci/linux_ci.vsh build_v_with_prealloc
|
||||
- name: All code is formatted
|
||||
|
@ -86,7 +86,7 @@ jobs:
|
|||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: All code is formatted
|
||||
run: v run ci/linux_ci.vsh all_code_is_formatted_gcc
|
||||
- name: Install dependencies for examples and tools
|
||||
|
@ -141,7 +141,7 @@ jobs:
|
|||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: All code is formatted
|
||||
run: v run ci/linux_ci.vsh all_code_is_formatted_clang
|
||||
- name: Install dependencies for examples and tools
|
||||
|
|
2
.github/workflows/macos_ci.yml
vendored
2
.github/workflows/macos_ci.yml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: Test symlink
|
||||
run: v run ci/macos_ci.vsh test_symlink
|
||||
- name: v doctor
|
||||
|
|
11
.github/workflows/module_docs_ci.yml
vendored
11
.github/workflows/module_docs_ci.yml
vendored
|
@ -34,16 +34,9 @@ jobs:
|
|||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
- name: Update packages, before running apt install
|
||||
run: .github/workflows/disable_azure_mirror.sh && 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
|
||||
run: make && ./v symlink
|
||||
- name: Install markdown from vpm
|
||||
run: v retry -- v install markdown
|
||||
- name: Test v doc
|
||||
|
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
|
||||
- name: Build V
|
||||
if: runner.os != 'Windows'
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: Build V (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: ./make.bat && ./v symlink
|
||||
|
|
13
.github/workflows/other_ci.yml
vendored
13
.github/workflows/other_ci.yml
vendored
|
@ -75,7 +75,7 @@ jobs:
|
|||
- name: Environment info
|
||||
run: echo "$VFLAGS $GITHUB_SHA $GITHUB_REF"
|
||||
- name: Build local v
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: v test-cleancode
|
||||
run: ./v -silent test-cleancode
|
||||
- name: v test-fmt
|
||||
|
@ -91,11 +91,11 @@ jobs:
|
|||
- name: Environment info
|
||||
run: echo "$VFLAGS $GITHUB_SHA $GITHUB_REF"
|
||||
- name: Build local v
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: Clone & Build previous vmaster/v
|
||||
run: |
|
||||
./v retry -- git clone --depth=1 https://github.com/vlang/v vmaster/
|
||||
(cd vmaster; make -j4)
|
||||
(cd vmaster; make)
|
||||
- name: V versions
|
||||
run: ./v version && ./vmaster/v version
|
||||
- name: Build the repeat tool
|
||||
|
@ -114,15 +114,14 @@ jobs:
|
|||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 10
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build v
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
./v retry -- sudo apt update
|
||||
./v retry -- sudo apt install --quiet -y libsodium-dev libssl-dev sqlite3 libsqlite3-dev postgresql libpq-dev valgrind
|
||||
./v retry -- sudo apt install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev libxrandr-dev libasound2-dev xfonts-75dpi xfonts-base
|
||||
./v retry -- sudo apt install --quiet -y g++-9 g++-10
|
||||
|
||||
- name: g++-9 version
|
||||
|
@ -151,7 +150,7 @@ jobs:
|
|||
- uses: actions/checkout@v5
|
||||
- name: Build local v
|
||||
run: |
|
||||
make -j4 && ./v symlink
|
||||
make && ./v symlink
|
||||
./v -g -d trace_parse_stmt cmd/tools/vtest-parser.v
|
||||
- name: Install zzuf
|
||||
run: ./v retry -- sudo apt install -qq zzuf
|
||||
|
|
2
.github/workflows/periodic_ci.yml
vendored
2
.github/workflows/periodic_ci.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
|||
- uses: actions/checkout@v5
|
||||
- name: Build
|
||||
if: runner.os != 'Windows'
|
||||
run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor
|
||||
run: make && ./v -showcc -o v cmd/v && ./v doctor
|
||||
- name: Build V (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: ./make.bat -msvc && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor
|
||||
|
|
49
.github/workflows/sanitized_ci.yml
vendored
49
.github/workflows/sanitized_ci.yml
vendored
|
@ -89,17 +89,11 @@ jobs:
|
|||
VNATIVE_SKIP_LIBC_VV: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: Ensure code is well formatted
|
||||
run: ./v -silent test-cleancode
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
./v retry -- sudo apt update
|
||||
./v retry -- sudo apt install --quiet -y postgresql libpq-dev libssl-dev sqlite3 libsqlite3-dev valgrind
|
||||
./v retry -- sudo apt install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev libxrandr-dev libasound2-dev
|
||||
./v retry -- sudo apt install clang
|
||||
- name: Recompile V with -cstrict
|
||||
run: ./v -cg -cstrict -o v cmd/v
|
||||
- name: Self tests (-fsanitize=undefined)
|
||||
|
@ -119,16 +113,11 @@ jobs:
|
|||
VNATIVE_SKIP_LIBC_VV: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: Ensure code is well formatted
|
||||
run: ./v -silent test-cleancode
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
./v retry -- sudo apt update
|
||||
./v retry -- sudo apt install --quiet -y postgresql libpq-dev libssl-dev sqlite3 libsqlite3-dev valgrind
|
||||
./v retry -- sudo apt install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev libxrandr-dev libasound2-dev
|
||||
- name: Recompile V with -cstrict
|
||||
run: ./v -cg -cstrict -o v cmd/v
|
||||
- name: Self tests (-fsanitize=undefined)
|
||||
|
@ -149,17 +138,11 @@ jobs:
|
|||
VNATIVE_SKIP_LIBC_VV: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: Ensure code is well formatted
|
||||
run: ./v -silent test-cleancode
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
./v retry -- sudo apt update
|
||||
./v retry -- sudo apt install --quiet -y postgresql libpq-dev libssl-dev sqlite3 libsqlite3-dev valgrind
|
||||
./v retry -- sudo apt install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev libxrandr-dev libasound2-dev
|
||||
./v retry -- sudo apt install clang
|
||||
- name: Recompile V with -cstrict
|
||||
run: ./v -cg -cstrict -o v cmd/v
|
||||
- name: Self tests (-fsanitize=address)
|
||||
|
@ -206,17 +189,11 @@ jobs:
|
|||
VNATIVE_SKIP_LIBC_VV: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: Ensure code is well formatted
|
||||
run: ./v -silent test-cleancode
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
./v retry -- sudo apt update
|
||||
./v retry -- sudo apt install --quiet -y postgresql libpq-dev libssl-dev sqlite3 libsqlite3-dev valgrind
|
||||
./v retry -- sudo apt install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev libxrandr-dev libasound2-dev
|
||||
./v retry -- sudo apt install clang
|
||||
- name: Recompile V with -cstrict
|
||||
run: ./v -cg -cstrict -o v cmd/v
|
||||
- name: Self tests (-fsanitize=address)
|
||||
|
@ -237,17 +214,11 @@ jobs:
|
|||
VNATIVE_SKIP_LIBC_VV: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: Ensure code is well formatted
|
||||
run: ./v -silent test-cleancode
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
./v retry -- sudo apt update
|
||||
./v retry -- sudo apt install --quiet -y postgresql libpq-dev libssl-dev sqlite3 libsqlite3-dev valgrind
|
||||
./v retry -- sudo apt install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev libxrandr-dev libasound2-dev
|
||||
./v retry -- sudo apt install clang
|
||||
- name: Recompile V with clang and -cstrict
|
||||
run: ./v -cc clang -cg -cstrict -o v cmd/v
|
||||
- name: Self tests (-fsanitize=memory)
|
||||
|
|
8
.github/workflows/sdl_ci.yml
vendored
8
.github/workflows/sdl_ci.yml
vendored
|
@ -31,16 +31,10 @@ jobs:
|
|||
VFLAGS: -cc tcc
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
run: make && sudo ./v symlink
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
v retry 'sudo apt update'
|
||||
v retry 'sudo apt install -y libsdl2-dev libsdl2-ttf-dev'
|
||||
v retry 'sudo apt install -y libsdl2-mixer-dev libsdl2-image-dev'
|
||||
|
||||
- name: Clone sdl into .vmodules
|
||||
run: |
|
||||
v retry 'git clone --filter=blob:none https://github.com/vlang/sdl'
|
||||
|
|
2
.github/workflows/symlink_ci.yml
vendored
2
.github/workflows/symlink_ci.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
run: make -j4
|
||||
run: make
|
||||
- name: Symlink
|
||||
run: |
|
||||
./v symlink
|
||||
|
|
2
.github/workflows/toml_ci.yml
vendored
2
.github/workflows/toml_ci.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
v retry -- v download https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64
|
||||
|
|
6
.github/workflows/tools_ci.yml
vendored
6
.github/workflows/tools_ci.yml
vendored
|
@ -35,7 +35,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor
|
||||
run: make && ./v -showcc -o v cmd/v && ./v doctor
|
||||
- name: Code in cmd/ is formatted
|
||||
run: ./v fmt -verify cmd/
|
||||
- name: Check build-tools
|
||||
|
@ -75,7 +75,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor
|
||||
run: make && ./v -showcc -o v cmd/v && ./v doctor
|
||||
- name: Check build-tools
|
||||
run: ./v -silent -N -W -check build-tools
|
||||
- name: Test tools
|
||||
|
@ -119,7 +119,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
run: make -j4 && ./v -cg -o v cmd/v
|
||||
run: make && ./v -cg -o v cmd/v
|
||||
- name: Ensure git commands can be used with no prompts on modern Git versions
|
||||
run: git config --global --add safe.directory /__w/v/v
|
||||
- name: Verify `v test` works
|
||||
|
|
|
@ -30,6 +30,7 @@ jobs:
|
|||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
|
||||
- name: Build V
|
||||
id: build
|
||||
|
@ -40,9 +41,7 @@ jobs:
|
|||
if [ "$RUNNER_OS" == 'Linux' ]; then
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
v retry -- sudo apt -qq update
|
||||
v retry -- sudo apt -qq install libgc-dev libsodium-dev libssl-dev sqlite3 libsqlite3-dev
|
||||
v retry -- sudo apt -qq install libfreetype6-dev libxi-dev libxcursor-dev libgl-dev libxrandr-dev libasound2-dev xfonts-75dpi xfonts-base
|
||||
v retry -- sudo apt -qq install sassc libgit2-dev # needed by gitly
|
||||
v retry -- sudo apt -qq install libgc-dev sassc libgit2-dev # needed by gitly
|
||||
else
|
||||
v retry brew install sassc libgit2
|
||||
fi
|
||||
|
|
4
.github/workflows/vab_ci.yml
vendored
4
.github/workflows/vab_ci.yml
vendored
|
@ -35,7 +35,7 @@ jobs:
|
|||
|
||||
- uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
|
||||
- name: Install vab
|
||||
run: |
|
||||
|
@ -70,7 +70,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
run: make && ./v symlink
|
||||
|
||||
- name: Install vab
|
||||
run: |
|
||||
|
|
8
.github/workflows/vinix_ci.yml
vendored
8
.github/workflows/vinix_ci.yml
vendored
|
@ -28,13 +28,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
run: make -j4 && ./v symlink
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
v retry -- sudo apt update
|
||||
v retry -- sudo apt install build-essential -y
|
||||
run: make && ./v symlink
|
||||
|
||||
- name: Clone current Vinix
|
||||
run: v retry -- git clone --depth=1 https://github.com/vlang/vinix.git
|
||||
|
|
2
.github/workflows/vpm_ci.yml
vendored
2
.github/workflows/vpm_ci.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
|||
run: git version
|
||||
- name: Build V
|
||||
if: runner.os != 'Windows'
|
||||
run: cd vlang && make -j4 && ./v doctor
|
||||
run: cd vlang && make && ./v doctor
|
||||
- name: Build V (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: cd vlang && ./make.bat && ./v doctor
|
||||
|
|
14
.github/workflows/vsl_and_vtl_compile_ci.yml
vendored
14
.github/workflows/vsl_and_vtl_compile_ci.yml
vendored
|
@ -32,17 +32,17 @@ jobs:
|
|||
VFLAGS: -no-parallel
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
id: build
|
||||
run: make && sudo ./v symlink
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
if [ "$RUNNER_OS" == 'Linux' ]; then
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
v retry -- sudo apt -qq update
|
||||
v retry -- sudo apt -qq install \
|
||||
libgc-dev libgl1-mesa-dev mesa-common-dev liblapacke-dev libopenblas-dev libopenmpi-dev \
|
||||
opencl-headers libxcursor-dev libxi-dev libxrandr-dev libhdf5-cpp-103-1t64 libhdf5-dev libhdf5-mpi-dev hdf5-tools
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
v retry -- sudo apt -qq update
|
||||
v retry -- sudo apt -qq install liblapacke-dev libopenblas-dev libopenmpi-dev \
|
||||
opencl-headers libhdf5-cpp-103-1t64 libhdf5-dev libhdf5-mpi-dev hdf5-tools
|
||||
else
|
||||
v retry brew install coreutils hdf5 open-mpi openblas lapack opencl-headers
|
||||
fi
|
||||
|
@ -67,6 +67,7 @@ jobs:
|
|||
TERM: xterm
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build V
|
||||
id: build
|
||||
run: make && sudo ./v symlink
|
||||
|
@ -75,8 +76,7 @@ jobs:
|
|||
if [ "$RUNNER_OS" == 'Linux' ]; then
|
||||
.github/workflows/disable_azure_mirror.sh
|
||||
v retry -- sudo apt -qq update
|
||||
v retry -- sudo apt -qq install \
|
||||
libgc-dev libgl1-mesa-dev mesa-common-dev liblapacke-dev libopenblas-dev libopenmpi-dev
|
||||
v retry -- sudo apt -qq install liblapacke-dev libopenblas-dev libopenmpi-dev
|
||||
else
|
||||
v retry brew install coreutils hdf5 open-mpi openblas lapack opencl-headers
|
||||
fi
|
||||
|
|
2
.github/workflows/wasm_backend_ci.yml
vendored
2
.github/workflows/wasm_backend_ci.yml
vendored
|
@ -56,7 +56,7 @@ jobs:
|
|||
- uses: actions/checkout@v5
|
||||
- name: Build V
|
||||
if: runner.os != 'Windows'
|
||||
run: make -j4
|
||||
run: make
|
||||
- name: Build V (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: ./make.bat
|
||||
|
|
5
.github/workflows/websockets_ci.yml
vendored
5
.github/workflows/websockets_ci.yml
vendored
|
@ -28,14 +28,13 @@ jobs:
|
|||
VFLAGS: -cc tcc -no-retry-compilation
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: ./.github/actions/cache-apt-packages-action
|
||||
- name: Build v
|
||||
run: |
|
||||
echo "$VFLAGS"
|
||||
sudo ln -s "$PWD/thirdparty/tcc/tcc.exe" /usr/local/bin/tcc ## TODO: remove
|
||||
make -j4 && ./v symlink
|
||||
make && ./v symlink
|
||||
./v -g -o v cmd/v
|
||||
- name: Install dependencies
|
||||
run: v retry -- sudo apt install --quiet -y libssl-dev
|
||||
- name: v doctor
|
||||
run: ./v doctor
|
||||
- name: Run websockets tests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue