From 2a62f1a312acfcc570e9543bc3efa26a654a995b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 18 May 2020 22:51:36 +0300 Subject: [PATCH] ci: check that the generated v and v.exe from v.c and v_win.c actually work --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e172bc5259..b26f7c1765 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -286,20 +286,22 @@ jobs: run: | sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list sudo apt-get update - sudo apt install --quiet -y mingw-w64 + sudo apt install --quiet -y mingw-w64 wine-stable winetricks - name: Build V run: make -j4 - - name: v.c can be compiled + - name: v.c can be compiled and run run: | ./v -os cross -o /tmp/v.c cmd/v - cc -g -std=gnu11 -w -o v_from_vc /tmp/v.c -lm + gcc -g -std=gnu11 -w -o v_from_vc /tmp/v.c -lm ls -lart v_from_vc - - name: v_win.c can be compiled + ./v_from_vc version + - name: v_win.c can be compiled and run run: | ./v -os windows -o /tmp/v_win.c cmd/v x86_64-w64-mingw32-gcc /tmp/v_win.c -std=c99 -w -municode -o v_from_vc.exe ls -lart v_from_vc.exe - + winetricks nocrashdialog + wine v_from_vc.exe version ubuntu-c-plus-plus: