mirror of
https://github.com/gechandesu/runcmd.git
synced 2026-06-02 21:28:04 +03:00
chore,ci: Run v fmt -w .; Use latest V in CI
This commit is contained in:
@@ -13,9 +13,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup V
|
- name: Setup V
|
||||||
run: |
|
run: |
|
||||||
wget -qO /tmp/v.zip https://github.com/vlang/v/releases/latest/download/v_linux.zip
|
git clone --depth=1 https://github.com/vlang/v /tmp/v && cd /tmp/v && make
|
||||||
unzip -q /tmp/v.zip -d /tmp
|
/tmp/v/v symlink
|
||||||
echo /tmp/v >> "$GITHUB_PATH"
|
|
||||||
|
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -15,9 +15,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup V
|
- name: Setup V
|
||||||
run: |
|
run: |
|
||||||
wget -qO /tmp/v.zip https://github.com/vlang/v/releases/latest/download/v_linux.zip
|
git clone --depth=1 https://github.com/vlang/v /tmp/v && cd /tmp/v && make
|
||||||
unzip -q /tmp/v.zip -d /tmp
|
/tmp/v/v symlink
|
||||||
echo /tmp/v >> "$GITHUB_PATH"
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import runcmd
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// Prepare command.
|
// 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.
|
// This is required to captute standart I/O streams.
|
||||||
cmd.redirect_stdio = true
|
cmd.redirect_stdio = true
|
||||||
|
|||||||
Reference in New Issue
Block a user