| 1 | name: Debug CI |
| 2 | |
| 3 | on: [workflow_dispatch] |
| 4 | |
| 5 | jobs: |
| 6 | debug-msvc: |
| 7 | runs-on: windows-2025 |
| 8 | timeout-minutes: 121 |
| 9 | env: |
| 10 | VFLAGS: -cc msvc |
| 11 | steps: |
| 12 | - uses: actions/checkout@v6 |
| 13 | - name: Build |
| 14 | run: | |
| 15 | echo %VFLAGS% |
| 16 | echo $VFLAGS |
| 17 | .\makev.bat -msvc |
| 18 | .\v.exe -cflags /WX self |
| 19 | - name: Install dependencies |
| 20 | run: | |
| 21 | .\v.exe setup-freetype |
| 22 | .\.github\workflows\windows-install-sqlite.bat |
| 23 | - name: v doctor |
| 24 | run: ./v doctor |
| 25 | - name: Verify `v test` works |
| 26 | run: | |
| 27 | ./v cmd/tools/test_if_v_test_system_works.v |
| 28 | ./cmd/tools/test_if_v_test_system_works |
| 29 | - name: All code is formatted |
| 30 | run: ./v -silent test-cleancode |
| 31 | - name: Self tests |
| 32 | run: ./v -silent test-self |
| 33 | - name: Test v->js |
| 34 | run: ./v -o hi.js examples/js_hello_world.v && node hi.js |
| 35 | - name: Test v binaries |
| 36 | run: ./v build-vbinaries |
| 37 | - name: Build examples |
| 38 | run: ./v -silent build-examples |
| 39 | - name: v2 self compilation |
| 40 | run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v |
| 41 | |