@@ -188,12 +188,18 @@ jobs:
188188 - name : Build v
189189 run : make
190190
191- - name : v.c can be compiled and run with -os cross
191+ - name : v.c can be compiled and run with -os cross (bootstrapping works)
192192 run : |
193- ./v -os cross -o /tmp/v.c cmd/v
194- gcc -g -std=gnu11 -I ./thirdparty/stdatomic/nix -w -o v_from_vc /tmp/v.c -lm -lpthread
193+ ls -la v vc/v.c
194+ ./v -os cross -o vc/v.c cmd/v
195+ gcc -g -std=gnu11 -I ./thirdparty/stdatomic/nix -w -o v_from_vc vc/v.c -lm -lpthread
195196 ls -lart v_from_vc
196197 ./v_from_vc version
198+ ./v_from_vc run examples/hello_world.v
199+ ./v_from_vc -o v_from_vc_produced_native_v cmd/v
200+ ./v_from_vc_produced_native_v run examples/hello_world.v
201+ make local=1
202+ ls -la v vc/v.c v_from_vc v_from_vc_produced_native_v
197203
198204 - name : Ensure v up works
199205 run : |
@@ -322,12 +328,19 @@ jobs:
322328 ./v cmd/tools/test_if_v_test_system_works.v
323329 ./cmd/tools/test_if_v_test_system_works
324330
325- - name : v.c can be compiled and run with -os cross
331+ - name : v.c can be compiled and run with -os cross (bootstrapping works)
326332 run : |
327- ./v -os cross -o /tmp/v.c cmd/v
328- cc -g -std=gnu11 -w -o v_from_vc /tmp/v.c -I ./thirdparty/stdatomic/nix -lm -lpthread
333+ ls -la v vc/v.c
334+ ./v -os cross -o vc/v.c cmd/v
335+ cc -g -std=gnu11 -I ./thirdparty/stdatomic/nix -w -o v_from_vc vc/v.c -lm -lpthread
329336 ls -lart v_from_vc
330337 ./v_from_vc version
338+ ./v_from_vc run examples/hello_world.v
339+ ./v_from_vc -o v_from_vc_produced_native_v cmd/v
340+ ./v_from_vc_produced_native_v run examples/hello_world.v
341+ ### the next make invocation will simulate building V from scratch
342+ make local=1
343+ ls -la v vc/v.c v_from_vc v_from_vc_produced_native_v
331344
332345 - name : Self tests
333346 run : VJOBS=1 ./v -silent test-self
0 commit comments