2021-04-17 15:12:11 +02:00
|
|
|
name: Debug CI
|
2021-04-17 15:08:18 +02:00
|
|
|
|
2021-04-17 15:19:17 +02:00
|
|
|
on: [workflow_dispatch]
|
2021-04-17 15:08:18 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-05-12 22:29:37 +02:00
|
|
|
|
2021-04-17 15:08:18 +02:00
|
|
|
debug-msvc:
|
|
|
|
runs-on: windows-2019
|
2021-07-29 17:04:02 +02:00
|
|
|
timeout-minutes: 121
|
2021-04-17 15:08:18 +02:00
|
|
|
env:
|
|
|
|
VFLAGS: -cc msvc
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12.x
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
echo %VFLAGS%
|
|
|
|
echo $VFLAGS
|
2021-09-28 12:11:55 +02:00
|
|
|
.\make.bat -msvc
|
2021-04-17 15:08:18 +02:00
|
|
|
.\v.exe -cflags /WX self
|
|
|
|
- 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: Self tests
|
|
|
|
run: |
|
|
|
|
./v -cg cmd\tools\vtest-self.v
|
2022-02-16 20:02:16 +01:00
|
|
|
./v test-self
|
2021-04-17 15:08:18 +02:00
|
|
|
- name: Test v->js
|
|
|
|
run: ./v -o hi.js examples/hello_v_js.v && node hi.js
|
|
|
|
- name: Test v binaries
|
|
|
|
run: ./v build-vbinaries
|
|
|
|
- name: Build examples
|
|
|
|
run: ./v build-examples
|
|
|
|
- name: v2 self compilation
|
|
|
|
run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
|