cleanup, use .github/actions/cache-apt-packages-action/action.yml in more places

This commit is contained in:
Delyan Angelov 2025-09-08 13:42:37 +03:00
parent f638c6e17c
commit e266c32007
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
28 changed files with 61 additions and 140 deletions

View file

@ -6,7 +6,7 @@ pwd
uname -a uname -a
make -j4 make
./v version ./v version

View file

@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Run V benchmark and save output - 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 run: (echo '```sh'; v -prod crun vlib/x/json2/decoder2/tests/bench.v; echo '```') > vlib/x/json2/decoder2/tests/bench_out.md

View file

@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Run V benchmark and save output - 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 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

View file

@ -43,7 +43,7 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Build V - name: Build V
run: make -j4 run: make
- name: Test bootstrapping (v.c can be compiled and run with -os cross) - name: Test bootstrapping (v.c can be compiled and run with -os cross)
run: | run: |
ls -la v vc/v.c ls -la v vc/v.c

View file

@ -32,6 +32,7 @@ jobs:
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make && ./v symlink run: make && ./v symlink
@ -47,15 +48,6 @@ jobs:
run: | run: |
v retry -- v install --git https://github.com/vlang/c2v v retry -- v install --git https://github.com/vlang/c2v
v -g ~/.vmodules/c2v/ || true 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 - name: Build original Chocolate Doom
run: | run: |
v retry -- git clone --quiet --depth 1 https://github.com/vlang/doom ~/code/doom v retry -- git clone --quiet --depth 1 https://github.com/vlang/doom ~/code/doom
@ -77,6 +69,7 @@ jobs:
VTMP: /tmp VTMP: /tmp
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make && ./v symlink run: make && ./v symlink
@ -92,19 +85,6 @@ jobs:
run: | run: |
v retry -- v install --git https://github.com/vlang/c2v v retry -- v install --git https://github.com/vlang/c2v
v -g ~/.vmodules/c2v/ || true 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 - name: Setup test tools
run: | run: |
# Fetch the free ~4MB DOOM1.WAD from the link at https://doomwiki.org/wiki/DOOM1.WAD # Fetch the free ~4MB DOOM1.WAD from the link at https://doomwiki.org/wiki/DOOM1.WAD

View file

@ -31,7 +31,7 @@ jobs:
with: with:
fetch-depth: 10 fetch-depth: 10
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -60,14 +60,15 @@ jobs:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
with: with:
fetch-depth: 10 fetch-depth: 10
- uses: ./.github/actions/cache-apt-packages-action
- name: Build v - name: Build v
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Install dependencies - name: Install dependencies
run: | run: |
.github/workflows/disable_azure_mirror.sh .github/workflows/disable_azure_mirror.sh
./v retry -- sudo apt update -y -qq ./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 - name: Show diagnostics for wine
run: | run: |

View file

@ -67,7 +67,7 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Build V - 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 - name: Verify `v test` works
run: | run: |
echo "$VFLAGS" echo "$VFLAGS"

View file

@ -26,10 +26,9 @@ jobs:
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make 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 - name: Check markdown line length & code examples
run: ./v check-md -hide-warnings . run: ./v check-md -hide-warnings .
## NB: -hide-warnings is used here, so that the output is less noisy, ## NB: -hide-warnings is used here, so that the output is less noisy,

View file

@ -34,7 +34,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build V - name: Build V
run: make -j4 run: make
- name: Regenerate v.c and v_win.c - name: Regenerate v.c and v_win.c
run: | run: |
git config --global user.email "vlang-bot@users.noreply.github.com" git config --global user.email "vlang-bot@users.noreply.github.com"

View file

@ -32,21 +32,13 @@ jobs:
steps: steps:
- name: Checkout V - name: Checkout V
uses: actions/checkout@v5 uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build local v - name: Build local v
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Setup dependencies - name: Setup dependencies
run: | 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 -- ./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 ./v retry -- git clone https://github.com/Larpon/gg-regression-images gg-regression-images
chmod +x ./imgur.sh chmod +x ./imgur.sh

View file

@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action - uses: ./.github/actions/cache-apt-packages-action
- name: Build v - name: Build v
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Build v with -prealloc - name: Build v with -prealloc
run: v run ci/linux_ci.vsh build_v_with_prealloc run: v run ci/linux_ci.vsh build_v_with_prealloc
- name: All code is formatted - name: All code is formatted
@ -86,7 +86,7 @@ jobs:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action - uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: All code is formatted - name: All code is formatted
run: v run ci/linux_ci.vsh all_code_is_formatted_gcc run: v run ci/linux_ci.vsh all_code_is_formatted_gcc
- name: Install dependencies for examples and tools - name: Install dependencies for examples and tools
@ -141,7 +141,7 @@ jobs:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action - uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: All code is formatted - name: All code is formatted
run: v run ci/linux_ci.vsh all_code_is_formatted_clang run: v run ci/linux_ci.vsh all_code_is_formatted_clang
- name: Install dependencies for examples and tools - name: Install dependencies for examples and tools

View file

@ -33,7 +33,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Test symlink - name: Test symlink
run: v run ci/macos_ci.vsh test_symlink run: v run ci/macos_ci.vsh test_symlink
- name: v doctor - name: v doctor

View file

@ -34,16 +34,9 @@ jobs:
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./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
- name: Install markdown from vpm - name: Install markdown from vpm
run: v retry -- v install markdown run: v retry -- v install markdown
- name: Test v doc - name: Test v doc

View file

@ -32,7 +32,7 @@ jobs:
- name: Build V - name: Build V
if: runner.os != 'Windows' if: runner.os != 'Windows'
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Build V (Windows) - name: Build V (Windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: ./make.bat && ./v symlink run: ./make.bat && ./v symlink

View file

@ -75,7 +75,7 @@ jobs:
- name: Environment info - name: Environment info
run: echo "$VFLAGS $GITHUB_SHA $GITHUB_REF" run: echo "$VFLAGS $GITHUB_SHA $GITHUB_REF"
- name: Build local v - name: Build local v
run: make -j4 && ./v symlink run: make && ./v symlink
- name: v test-cleancode - name: v test-cleancode
run: ./v -silent test-cleancode run: ./v -silent test-cleancode
- name: v test-fmt - name: v test-fmt
@ -91,11 +91,11 @@ jobs:
- name: Environment info - name: Environment info
run: echo "$VFLAGS $GITHUB_SHA $GITHUB_REF" run: echo "$VFLAGS $GITHUB_SHA $GITHUB_REF"
- name: Build local v - name: Build local v
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Clone & Build previous vmaster/v - name: Clone & Build previous vmaster/v
run: | run: |
./v retry -- git clone --depth=1 https://github.com/vlang/v vmaster/ ./v retry -- git clone --depth=1 https://github.com/vlang/v vmaster/
(cd vmaster; make -j4) (cd vmaster; make)
- name: V versions - name: V versions
run: ./v version && ./vmaster/v version run: ./v version && ./vmaster/v version
- name: Build the repeat tool - name: Build the repeat tool
@ -114,15 +114,14 @@ jobs:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
with: with:
fetch-depth: 10 fetch-depth: 10
- uses: ./.github/actions/cache-apt-packages-action
- name: Build v - name: Build v
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Install dependencies - name: Install dependencies
run: | run: |
.github/workflows/disable_azure_mirror.sh .github/workflows/disable_azure_mirror.sh
./v retry -- sudo apt update ./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 ./v retry -- sudo apt install --quiet -y g++-9 g++-10
- name: g++-9 version - name: g++-9 version
@ -151,7 +150,7 @@ jobs:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build local v - name: Build local v
run: | run: |
make -j4 && ./v symlink make && ./v symlink
./v -g -d trace_parse_stmt cmd/tools/vtest-parser.v ./v -g -d trace_parse_stmt cmd/tools/vtest-parser.v
- name: Install zzuf - name: Install zzuf
run: ./v retry -- sudo apt install -qq zzuf run: ./v retry -- sudo apt install -qq zzuf

View file

@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build - name: Build
if: runner.os != 'Windows' 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) - name: Build V (Windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: ./make.bat -msvc && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor run: ./make.bat -msvc && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor

View file

@ -89,17 +89,11 @@ jobs:
VNATIVE_SKIP_LIBC_VV: 1 VNATIVE_SKIP_LIBC_VV: 1
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Ensure code is well formatted - name: Ensure code is well formatted
run: ./v -silent test-cleancode 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 - name: Recompile V with -cstrict
run: ./v -cg -cstrict -o v cmd/v run: ./v -cg -cstrict -o v cmd/v
- name: Self tests (-fsanitize=undefined) - name: Self tests (-fsanitize=undefined)
@ -119,16 +113,11 @@ jobs:
VNATIVE_SKIP_LIBC_VV: 1 VNATIVE_SKIP_LIBC_VV: 1
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Ensure code is well formatted - name: Ensure code is well formatted
run: ./v -silent test-cleancode 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 - name: Recompile V with -cstrict
run: ./v -cg -cstrict -o v cmd/v run: ./v -cg -cstrict -o v cmd/v
- name: Self tests (-fsanitize=undefined) - name: Self tests (-fsanitize=undefined)
@ -149,17 +138,11 @@ jobs:
VNATIVE_SKIP_LIBC_VV: 1 VNATIVE_SKIP_LIBC_VV: 1
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Ensure code is well formatted - name: Ensure code is well formatted
run: ./v -silent test-cleancode 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 - name: Recompile V with -cstrict
run: ./v -cg -cstrict -o v cmd/v run: ./v -cg -cstrict -o v cmd/v
- name: Self tests (-fsanitize=address) - name: Self tests (-fsanitize=address)
@ -206,17 +189,11 @@ jobs:
VNATIVE_SKIP_LIBC_VV: 1 VNATIVE_SKIP_LIBC_VV: 1
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Ensure code is well formatted - name: Ensure code is well formatted
run: ./v -silent test-cleancode 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 - name: Recompile V with -cstrict
run: ./v -cg -cstrict -o v cmd/v run: ./v -cg -cstrict -o v cmd/v
- name: Self tests (-fsanitize=address) - name: Self tests (-fsanitize=address)
@ -237,17 +214,11 @@ jobs:
VNATIVE_SKIP_LIBC_VV: 1 VNATIVE_SKIP_LIBC_VV: 1
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Ensure code is well formatted - name: Ensure code is well formatted
run: ./v -silent test-cleancode 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 - name: Recompile V with clang and -cstrict
run: ./v -cc clang -cg -cstrict -o v cmd/v run: ./v -cc clang -cg -cstrict -o v cmd/v
- name: Self tests (-fsanitize=memory) - name: Self tests (-fsanitize=memory)

View file

@ -31,16 +31,10 @@ jobs:
VFLAGS: -cc tcc VFLAGS: -cc tcc
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
run: make && sudo ./v symlink 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 - name: Clone sdl into .vmodules
run: | run: |
v retry 'git clone --filter=blob:none https://github.com/vlang/sdl' v retry 'git clone --filter=blob:none https://github.com/vlang/sdl'

View file

@ -25,7 +25,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build V - name: Build V
run: make -j4 run: make
- name: Symlink - name: Symlink
run: | run: |
./v symlink ./v symlink

View file

@ -23,7 +23,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Install dependencies - name: Install dependencies
run: | run: |
v retry -- v download https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 v retry -- v download https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64

View file

@ -35,7 +35,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build V - 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 - name: Code in cmd/ is formatted
run: ./v fmt -verify cmd/ run: ./v fmt -verify cmd/
- name: Check build-tools - name: Check build-tools
@ -75,7 +75,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build V - 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 - name: Check build-tools
run: ./v -silent -N -W -check build-tools run: ./v -silent -N -W -check build-tools
- name: Test tools - name: Test tools
@ -119,7 +119,7 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Build V - 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 - name: Ensure git commands can be used with no prompts on modern Git versions
run: git config --global --add safe.directory /__w/v/v run: git config --global --add safe.directory /__w/v/v
- name: Verify `v test` works - name: Verify `v test` works

View file

@ -30,6 +30,7 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
id: build id: build
@ -40,9 +41,7 @@ jobs:
if [ "$RUNNER_OS" == 'Linux' ]; then if [ "$RUNNER_OS" == 'Linux' ]; then
.github/workflows/disable_azure_mirror.sh .github/workflows/disable_azure_mirror.sh
v retry -- sudo apt -qq update 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 libgc-dev sassc libgit2-dev # needed by gitly
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
else else
v retry brew install sassc libgit2 v retry brew install sassc libgit2
fi fi

View file

@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Install vab - name: Install vab
run: | run: |
@ -70,7 +70,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build V - name: Build V
run: make -j4 && ./v symlink run: make && ./v symlink
- name: Install vab - name: Install vab
run: | run: |

View file

@ -28,13 +28,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build V - 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 build-essential -y
- name: Clone current Vinix - name: Clone current Vinix
run: v retry -- git clone --depth=1 https://github.com/vlang/vinix.git run: v retry -- git clone --depth=1 https://github.com/vlang/vinix.git

View file

@ -29,7 +29,7 @@ jobs:
run: git version run: git version
- name: Build V - name: Build V
if: runner.os != 'Windows' if: runner.os != 'Windows'
run: cd vlang && make -j4 && ./v doctor run: cd vlang && make && ./v doctor
- name: Build V (Windows) - name: Build V (Windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: cd vlang && ./make.bat && ./v doctor run: cd vlang && ./make.bat && ./v doctor

View file

@ -32,6 +32,7 @@ jobs:
VFLAGS: -no-parallel VFLAGS: -no-parallel
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
id: build id: build
run: make && sudo ./v symlink run: make && sudo ./v symlink
@ -40,9 +41,8 @@ jobs:
if [ "$RUNNER_OS" == 'Linux' ]; then if [ "$RUNNER_OS" == 'Linux' ]; then
.github/workflows/disable_azure_mirror.sh .github/workflows/disable_azure_mirror.sh
v retry -- sudo apt -qq update v retry -- sudo apt -qq update
v retry -- sudo apt -qq install \ v retry -- sudo apt -qq install liblapacke-dev libopenblas-dev libopenmpi-dev \
libgc-dev libgl1-mesa-dev mesa-common-dev liblapacke-dev libopenblas-dev libopenmpi-dev \ opencl-headers libhdf5-cpp-103-1t64 libhdf5-dev libhdf5-mpi-dev hdf5-tools
opencl-headers libxcursor-dev libxi-dev libxrandr-dev libhdf5-cpp-103-1t64 libhdf5-dev libhdf5-mpi-dev hdf5-tools
else else
v retry brew install coreutils hdf5 open-mpi openblas lapack opencl-headers v retry brew install coreutils hdf5 open-mpi openblas lapack opencl-headers
fi fi
@ -67,6 +67,7 @@ jobs:
TERM: xterm TERM: xterm
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build V - name: Build V
id: build id: build
run: make && sudo ./v symlink run: make && sudo ./v symlink
@ -75,8 +76,7 @@ jobs:
if [ "$RUNNER_OS" == 'Linux' ]; then if [ "$RUNNER_OS" == 'Linux' ]; then
.github/workflows/disable_azure_mirror.sh .github/workflows/disable_azure_mirror.sh
v retry -- sudo apt -qq update v retry -- sudo apt -qq update
v retry -- sudo apt -qq install \ v retry -- sudo apt -qq install liblapacke-dev libopenblas-dev libopenmpi-dev
libgc-dev libgl1-mesa-dev mesa-common-dev liblapacke-dev libopenblas-dev libopenmpi-dev
else else
v retry brew install coreutils hdf5 open-mpi openblas lapack opencl-headers v retry brew install coreutils hdf5 open-mpi openblas lapack opencl-headers
fi fi

View file

@ -56,7 +56,7 @@ jobs:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Build V - name: Build V
if: runner.os != 'Windows' if: runner.os != 'Windows'
run: make -j4 run: make
- name: Build V (Windows) - name: Build V (Windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: ./make.bat run: ./make.bat

View file

@ -28,14 +28,13 @@ jobs:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- uses: ./.github/actions/cache-apt-packages-action
- name: Build v - name: Build v
run: | run: |
echo "$VFLAGS" echo "$VFLAGS"
sudo ln -s "$PWD/thirdparty/tcc/tcc.exe" /usr/local/bin/tcc ## TODO: remove 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 ./v -g -o v cmd/v
- name: Install dependencies
run: v retry -- sudo apt install --quiet -y libssl-dev
- name: v doctor - name: v doctor
run: ./v doctor run: ./v doctor
- name: Run websockets tests - name: Run websockets tests