diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42f482aa27..b6310d247b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,6 +109,13 @@ jobs: run: ./v tutorials/building_a_simple_web_blog_with_vweb/code/blog - name: Build cmd/tools/fast run: cd cmd/tools/fast && ../../../v fast.v && ./fast + - name: V self compilation with -usecache + run: | + ./v -usecache examples/hello_world.v && examples/hello_world + ./v -o v2 -usecache cmd/v + ./v2 -o v3 -usecache cmd/v + ./v3 version + ./v3 -o tetris -usecache examples/tetris/tetris.v ubuntu-tcc-boehm-gc: runs-on: ubuntu-20.04 @@ -273,12 +280,6 @@ jobs: UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1 ./v2 -o v.c cmd/v - name: Build V using V run: ./v -o v2 cmd/v && ./v2 -o v3 cmd/v - - name: usecache - run: | - ./v -usecache examples/hello_world.v && examples/hello_world - ./v -o v2 -usecache cmd/v - ./v2 -o v3 -usecache cmd/v - ./v3 -o tetris -usecache examples/tetris/tetris.v - name: Test symlink run: ./v symlink # - name: Set up pg database @@ -372,14 +373,15 @@ jobs: # run: git clone --depth 1 https://github.com/vlang/vpm && cd vpm && ../v . && cd .. - name: Freestanding run: ./v -freestanding run vlib/os/bare/bare_example_linux.v - - name: v self compilation + - name: V self compilation run: ./v -o v2 cmd/v && ./v2 -o v3 cmd/v && ./v3 -o v4 cmd/v - # QTODO - # - name: v self compilation with -usecache - # run: | - # ./v -o v2 -usecache cmd/v - # ./v2 -o v3 -usecache cmd/v - # ./v3 -usecache examples/tetris/tetris.v + - name: V self compilation with -usecache + run: | + ./v -usecache examples/hello_world.v && examples/hello_world + ./v -o v2 -usecache cmd/v + ./v2 -o v3 -usecache cmd/v + ./v3 version + ./v3 -o tetris -usecache examples/tetris/tetris.v - name: Verify `v test` works run: | ./v cmd/tools/test_if_v_test_system_works.v @@ -464,12 +466,13 @@ jobs: ASAN_OPTIONS=detect_leaks=0 UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1 ./v5 -o v.c cmd/v - name: v self compilation run: ./v -o v2 cmd/v && ./v2 -o v3 cmd/v && ./v3 -o v4 cmd/v - # QTODO - # - name: v self compilation with -usecache - # run: | - # ./v -o v2 -usecache cmd/v - # ./v2 -o v3 -usecache cmd/v - # ./v3 -usecache examples/tetris/tetris.v + - name: v self compilation with -usecache + run: | + ./v -usecache examples/hello_world.v && examples/hello_world + ./v -o v2 -usecache cmd/v + ./v2 -o v3 -usecache cmd/v + ./v3 version + ./v3 -o tetris -usecache examples/tetris/tetris.v - name: Verify `v test` works run: | ./v cmd/tools/test_if_v_test_system_works.v