From 604b9e2d426dc430e9476036de68a97f5f3f4430 Mon Sep 17 00:00:00 2001 From: ge Date: Mon, 1 Jun 2026 00:04:58 +0300 Subject: [PATCH] chore,ci: Run v fmt -w .; Use latest V in CI --- .github/workflows/docs.yaml | 5 ++--- .github/workflows/test.yaml | 5 ++--- examples/stream_output.v | 3 ++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 8a753c0..04bc63c 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -13,9 +13,8 @@ jobs: - name: Setup V run: | - wget -qO /tmp/v.zip https://github.com/vlang/v/releases/latest/download/v_linux.zip - unzip -q /tmp/v.zip -d /tmp - echo /tmp/v >> "$GITHUB_PATH" + git clone --depth=1 https://github.com/vlang/v /tmp/v && cd /tmp/v && make + /tmp/v/v symlink - name: Build docs run: | diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f1dd22e..0540ec7 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,9 +15,8 @@ jobs: - name: Setup V run: | - wget -qO /tmp/v.zip https://github.com/vlang/v/releases/latest/download/v_linux.zip - unzip -q /tmp/v.zip -d /tmp - echo /tmp/v >> "$GITHUB_PATH" + git clone --depth=1 https://github.com/vlang/v /tmp/v && cd /tmp/v && make + /tmp/v/v symlink - name: Run tests run: | diff --git a/examples/stream_output.v b/examples/stream_output.v index f842c5a..0e66fc2 100644 --- a/examples/stream_output.v +++ b/examples/stream_output.v @@ -3,7 +3,8 @@ import runcmd fn main() { // Prepare command. - mut cmd := runcmd.new('sh', '-c', r'for i in {1..5}; do echo line $i; sleep .5; done; echo finish!') + mut cmd := runcmd.new('sh', '-c', + r'for i in {1..5}; do echo line $i; sleep .5; done; echo finish!') // This is required to captute standart I/O streams. cmd.redirect_stdio = true