ci: make the bootstrapping failure detection more sensitive

pull/12000/head
Delyan Angelov 2021-09-28 17:17:55 +03:00
parent 87fe15e39f
commit 85c38bac34
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 19 additions and 6 deletions

View File

@ -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