From 75903052a8b86db4147df76fdb621fa58edcc80a Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 20 Dec 2020 19:25:07 +0200 Subject: [PATCH] ci: add a task for linux->windows `-os windows examples/hello_world.v` --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2db42c3dd..13c4c8beab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -563,14 +563,19 @@ jobs: gcc -g -std=gnu11 -w -o v_from_vc /tmp/v.c -lm -lpthread ls -lart v_from_vc ./v_from_vc version + - name: turn off the wine crash dialog + run: winetricks nocrashdialog - 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 - + - name: hello_world.v can be cross compiled to hello_world.exe + run: | + ./v -os windows examples/hello_world.v + ls -lart examples/hello_world.exe + wine examples/hello_world.exe ubuntu-c-plus-plus: runs-on: ubuntu-18.04