1717 - ' !cmd/tools/builders/**.v'
1818
1919concurrency :
20- group : ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
20+ group : cross- ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
2121 cancel-in-progress : true
2222
2323jobs :
5252 ./v -os windows examples/2048/2048.v
5353
5454 linux-cross :
55- runs-on : ubuntu-20 .04
55+ runs-on : ubuntu-24 .04
5656 timeout-minutes : 25
5757 env :
5858 VFLAGS : -cc tcc -no-retry-compilation
@@ -65,14 +65,12 @@ jobs:
6565
6666 - name : Install dependencies
6767 run : |
68- ## sudo dpkg --add-architecture i386
69- ./v retry -- sudo apt update
70- ./v retry -- sudo apt install --quiet -y libssl-dev sqlite3 libsqlite3-dev
71- ./v retry -- sudo apt install --quiet -y mingw-w64 wine-stable winetricks
72- ## ./v retry -- sudo apt install --quiet -y wine32
68+ ./v retry -- sudo apt install --quiet -y mingw-w64 wine wine64 winetricks libssl-dev sqlite3 libsqlite3-dev
7369
74- - name : Turn off the wine crash dialog
75- run : winetricks nocrashdialog
70+ - name : Show diagnostics for wine
71+ run : |
72+ which wine
73+ ls -la $(realpath $(which wine))
7674
7775 - name : v.c can be compiled and run with -os cross
7876 run : |
@@ -86,13 +84,13 @@ jobs:
8684 ./v -cc msvc -os windows -o /tmp/v_win.c cmd/v
8785 x86_64-w64-mingw32-gcc /tmp/v_win.c -std=c99 -w -municode -o v_from_vc.exe -lws2_32
8886 ls -lart v_from_vc.exe
89- wine64 ./v_from_vc.exe version
87+ wine ./v_from_vc.exe version
9088
9189 - name : hello_world.v can be cross compiled to hello_world.exe
9290 run : |
9391 ./v -os windows examples/hello_world.v
9492 ls -lart examples/hello_world.exe
95- wine64 examples/hello_world.exe
93+ wine examples/hello_world.exe
9694
9795 - name : 2048.v can be cross compiled to 2048.exe
9896 run : |
0 commit comments