From 7496c1be2a098c09993fa4f7c4cad479b85a4cb8 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 2 Jun 2020 19:47:28 +0200 Subject: [PATCH] examples: fix remaining examples and add them to CI --- .github/workflows/ci.yml | 2 ++ cmd/tools/modules/testing/common.v | 2 +- examples/game_of_life/life_gg.v | 3 ++- examples/hot_reload/graph.v | 6 +++--- examples/random_ips.v | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9436364939..a4b949782e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,6 +104,8 @@ jobs: run: ./v symlink && v -o v2 cmd/v - name: Fixed tests run: ./v test-fixed + - name: Build examples + run: ./v build-examples # - name: Test vsh # run: ./v examples/v_script.vsh ## - name: Test vid diff --git a/cmd/tools/modules/testing/common.v b/cmd/tools/modules/testing/common.v index c6e0eeec5b..9932a689af 100644 --- a/cmd/tools/modules/testing/common.v +++ b/cmd/tools/modules/testing/common.v @@ -233,7 +233,7 @@ pub fn v_build_failing_skipped(zargs string, folder string, skipped []string) bo mut mains := []string{} for f in files { if !f.contains('modules') && !f.contains('preludes') { - if f.contains('/vweb/') || f.contains('/pg/') || f.contains('rune.v') { + if f.contains('/vweb/') || f.contains('/pg/') || f.contains('rune.v') || f.contains('/pico') { continue } diff --git a/examples/game_of_life/life_gg.v b/examples/game_of_life/life_gg.v index 9817e93984..4960d040d1 100644 --- a/examples/game_of_life/life_gg.v +++ b/examples/game_of_life/life_gg.v @@ -36,7 +36,8 @@ fn print_automaton(a &automaton.Automaton){ for x := 1; x