Repository navigation
60 lines (56 loc) · 1.74 KB
/
Copy pathdebug.yml
File metadata and controls
60 lines (56 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Debug CI
on: [workflow_dispatch]
permissions:
contents: read
concurrency:
group: debug-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
debug-msvc:
if: github.ref == 'refs/heads/master'
runs-on: windows-2025
timeout-minutes: 121
env:
# Stop a failing test session at its first failure instead of
# running the whole suite to completion; the remaining files
# add no signal.
VTEST_FAIL_FAST: '1'
VFLAGS: -cc msvc
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Build
run: |
echo %VFLAGS%
echo $VFLAGS
.\makev.bat -msvc
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
.\v.exe -cflags /WX self
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Prepare optimized V compiler
uses: ./.github/actions/setup-v
with:
symlink: 'false'
- name: Install dependencies
run: |
.\v.exe setup-freetype
.\.github\workflows\windows-install-sqlite.bat
- name: v doctor
run: ./v doctor
- name: Verify `v test` works
run: |
./v cmd/tools/test_if_v_test_system_works.v
./cmd/tools/test_if_v_test_system_works
- name: All code is formatted
run: ./v -silent test-cleancode
- name: Self tests
run: ./v -silent test-self
- name: Test v->js
run: ./v -o hi.js examples/js_hello_world.v && node hi.js
- name: Test v binaries
run: ./v build-vbinaries
- name: Build examples
run: ./v -silent build-examples
- name: v2 self compilation
run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v