mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: make the bootstrapping failure detection more sensitive
This commit is contained in:
parent
87fe15e39f
commit
85c38bac34
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
@ -188,12 +188,18 @@ jobs:
|
|||||||
- name: Build v
|
- name: Build v
|
||||||
run: make
|
run: make
|
||||||
|
|
||||||
- name: v.c can be compiled and run with -os cross
|
- name: v.c can be compiled and run with -os cross (bootstrapping works)
|
||||||
run: |
|
run: |
|
||||||
./v -os cross -o /tmp/v.c cmd/v
|
ls -la v vc/v.c
|
||||||
gcc -g -std=gnu11 -I ./thirdparty/stdatomic/nix -w -o v_from_vc /tmp/v.c -lm -lpthread
|
./v -os cross -o vc/v.c cmd/v
|
||||||
|
gcc -g -std=gnu11 -I ./thirdparty/stdatomic/nix -w -o v_from_vc vc/v.c -lm -lpthread
|
||||||
ls -lart v_from_vc
|
ls -lart v_from_vc
|
||||||
./v_from_vc version
|
./v_from_vc version
|
||||||
|
./v_from_vc run examples/hello_world.v
|
||||||
|
./v_from_vc -o v_from_vc_produced_native_v cmd/v
|
||||||
|
./v_from_vc_produced_native_v run examples/hello_world.v
|
||||||
|
make local=1
|
||||||
|
ls -la v vc/v.c v_from_vc v_from_vc_produced_native_v
|
||||||
|
|
||||||
- name: Ensure v up works
|
- name: Ensure v up works
|
||||||
run: |
|
run: |
|
||||||
@ -322,12 +328,19 @@ 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
|
- name: v.c can be compiled and run with -os cross (bootstrapping works)
|
||||||
run: |
|
run: |
|
||||||
./v -os cross -o /tmp/v.c cmd/v
|
ls -la v vc/v.c
|
||||||
cc -g -std=gnu11 -w -o v_from_vc /tmp/v.c -I ./thirdparty/stdatomic/nix -lm -lpthread
|
./v -os cross -o vc/v.c cmd/v
|
||||||
|
cc -g -std=gnu11 -I ./thirdparty/stdatomic/nix -w -o v_from_vc vc/v.c -lm -lpthread
|
||||||
ls -lart v_from_vc
|
ls -lart v_from_vc
|
||||||
./v_from_vc version
|
./v_from_vc version
|
||||||
|
./v_from_vc run examples/hello_world.v
|
||||||
|
./v_from_vc -o v_from_vc_produced_native_v cmd/v
|
||||||
|
./v_from_vc_produced_native_v run examples/hello_world.v
|
||||||
|
### the next make invocation will simulate building V from scratch
|
||||||
|
make local=1
|
||||||
|
ls -la v vc/v.c v_from_vc v_from_vc_produced_native_v
|
||||||
|
|
||||||
- name: Self tests
|
- name: Self tests
|
||||||
run: VJOBS=1 ./v -silent test-self
|
run: VJOBS=1 ./v -silent test-self
|
||||||
|
Loading…
Reference in New Issue
Block a user