ci: add a `v.c can be compiled and run with -os cross` step on the macos job too
parent
f5a22f15d9
commit
83d492bcb8
|
@ -319,6 +319,13 @@ jobs:
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
./cmd/tools/test_if_v_test_system_works
|
./cmd/tools/test_if_v_test_system_works
|
||||||
|
|
||||||
|
- name: v.c can be compiled and run with -os cross
|
||||||
|
run: |
|
||||||
|
./v -os cross -o /tmp/v.c cmd/v
|
||||||
|
cc -g -std=gnu11 -w -o v_from_vc /tmp/v.c -lm -lpthread
|
||||||
|
ls -lart v_from_vc
|
||||||
|
./v_from_vc version
|
||||||
|
|
||||||
- name: Self tests
|
- name: Self tests
|
||||||
run: VJOBS=1 ./v -silent test-self
|
run: VJOBS=1 ./v -silent test-self
|
||||||
|
|
||||||
|
@ -396,12 +403,12 @@ jobs:
|
||||||
run: ./v -freestanding run vlib/os/bare/bare_example_linux.v
|
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
|
run: ./v -o v2 cmd/v && ./v2 -o v3 cmd/v && ./v3 -o v4 cmd/v
|
||||||
# QTODO
|
# QTODO
|
||||||
# - name: v self compilation with -usecache
|
# - name: v self compilation with -usecache
|
||||||
# run: |
|
# run: |
|
||||||
# ./v -o v2 -usecache cmd/v
|
# ./v -o v2 -usecache cmd/v
|
||||||
# ./v2 -o v3 -usecache cmd/v
|
# ./v2 -o v3 -usecache cmd/v
|
||||||
# ./v3 -usecache examples/tetris/tetris.v
|
# ./v3 -usecache examples/tetris/tetris.v
|
||||||
- name: Verify `v test` works
|
- name: Verify `v test` works
|
||||||
run: |
|
run: |
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
|
@ -448,7 +455,7 @@ jobs:
|
||||||
ls
|
ls
|
||||||
|
|
||||||
# ./1m
|
# ./1m
|
||||||
#run: echo "TODO" #cd examples/native && ../../v -native hello_world.v && ./hello_world
|
# run: echo "TODO" #cd examples/native && ../../v -native hello_world.v && ./hello_world
|
||||||
# - name: Coveralls GitHub Action
|
# - name: Coveralls GitHub Action
|
||||||
# uses: coverallsapp/github-action@v1.0.1
|
# uses: coverallsapp/github-action@v1.0.1
|
||||||
# with:
|
# with:
|
||||||
|
@ -487,12 +494,12 @@ jobs:
|
||||||
ASAN_OPTIONS=detect_leaks=0 UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1 ./v5 -o v.c cmd/v
|
ASAN_OPTIONS=detect_leaks=0 UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1 ./v5 -o v.c cmd/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
|
run: ./v -o v2 cmd/v && ./v2 -o v3 cmd/v && ./v3 -o v4 cmd/v
|
||||||
# QTODO
|
# QTODO
|
||||||
# - name: v self compilation with -usecache
|
# - name: v self compilation with -usecache
|
||||||
# run: |
|
# run: |
|
||||||
# ./v -o v2 -usecache cmd/v
|
# ./v -o v2 -usecache cmd/v
|
||||||
# ./v2 -o v3 -usecache cmd/v
|
# ./v2 -o v3 -usecache cmd/v
|
||||||
# ./v3 -usecache examples/tetris/tetris.v
|
# ./v3 -usecache examples/tetris/tetris.v
|
||||||
- name: Verify `v test` works
|
- name: Verify `v test` works
|
||||||
run: |
|
run: |
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
|
|
Loading…
Reference in New Issue