From 81d17f0a39873d4312b8a3137097d66b4af819dc Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 17 Apr 2021 19:31:29 +0300 Subject: [PATCH] ci: add a windows-cross job to ci_cross.yml to prevent regressions --- .github/workflows/ci_cross.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_cross.yml b/.github/workflows/ci_cross.yml index ddf17acf97..900a9cb1ce 100644 --- a/.github/workflows/ci_cross.yml +++ b/.github/workflows/ci_cross.yml @@ -10,7 +10,7 @@ on: jobs: - macos: + macos-cross: runs-on: macOS-latest timeout-minutes: 15 env: @@ -41,7 +41,7 @@ jobs: ./v -os windows cmd/v ./v -os windows examples/2048/2048.v - linux: + linux-cross: runs-on: ubuntu-20.04 timeout-minutes: 15 env: @@ -53,8 +53,6 @@ jobs: - name: Install dependencies run: | sudo apt-get install --quiet -y libssl-dev sqlite3 libsqlite3-dev valgrind - sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libasound2-dev libgl-dev - sudo apt-get install --quiet -y xfonts-75dpi xfonts-base sudo apt-get install --quiet -y mingw-w64 wine-stable winetricks - name: Turn off the wine crash dialog run: winetricks nocrashdialog @@ -86,3 +84,22 @@ jobs: run: | ./v -os windows examples/2048/2048.v ls -lart examples/2048/2048.exe + + windows-cross: + runs-on: windows-2019 + timeout-minutes: 15 + env: + VFLAGS: -cc msvc + steps: + - uses: actions/checkout@v2 + - name: Build + run: | + echo %VFLAGS% + echo $VFLAGS + .\make.bat --verbose -msvc + - name: TODO v_win.c can be compiled and run with -os windows + run: | + .\v.exe -os windows -showcc -o v2.exe cmd\v + .\v.exe -os windows -o v_win.c cmd\v + dir v2.exe + dir v_win.c