ci: add a `v.c can be compiled and run with -os cross` step on the macos job too

pull/11419/head
Delyan Angelov 2021-09-06 20:38:51 +03:00
parent f5a22f15d9
commit 83d492bcb8
1 changed files with 28 additions and 21 deletions

View File

@ -319,6 +319,13 @@ jobs:
./v cmd/tools/test_if_v_test_system_works.v
./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
run: VJOBS=1 ./v -silent test-self