robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
aa1d8a2702
master
1name : windows 2on : 3workflow_call : 4inputs : 5build_flags : 6type : string 7functionaltest_timeout : 8default : 20 9type : number 10workflow_dispatch : 11 12permissions : 13contents : read 14 15jobs : 16windows : 17runs-on : windows-2025 18timeout-minutes : 45 19strategy : 20fail-fast : false 21matrix : 22test : [ functional , old ] 23steps : 24- uses : actions/checkout@v7.0.1 25with : 26persist-credentials : false 27 28- uses : ./.github/actions/setup 29 30- name : Build deps 31run : | 32cmake -S cmake.deps -B .deps -G Ninja -D CMAKE_BUILD_TYPE='RelWithDebInfo' 33cmake --build .deps 34 35- name : Build 36env : 37BUILD_FLAGS : ${{ inputs.build_flags }} 38run : | 39cmake --preset ci -D CMAKE_BUILD_TYPE='RelWithDebInfo' $env:BUILD_FLAGS 40cmake --build build 41 42- name : Install test deps 43run : | 44$PSNativeCommandArgumentPassing = 'Legacy' 45 46& build\bin\nvim.exe "--version" 47 48# Ensure that the "win32" feature is set. 49& build\bin\nvim -u NONE --headless -c 'exe !has(\"win32\").\"cq\"' 50 51python -m pip install pynvim 52# Sanity check 53python -c "import pynvim; print(str(pynvim))" 54 55node --version 56npm.cmd --version 57 58npm.cmd install -g neovim 59Get-Command -CommandType Application neovim-node-host.cmd 60npm.cmd link neovim 61 62- if : ${{ matrix.test == 'functional' }} 63name : functionaltest 64timeout-minutes : ${{ inputs.functionaltest_timeout }} 65env : 66# With parallel tests, use shorter timeout for a single group. 67TEST_TIMEOUT : 600 68run : | 69$ErrorActionPreference = 'Continue' 70# `-k 0` tells ninja to continue running all targets even if some fail. 71cmake --build build --target functionaltest-parallel -j 2 -- -k 0 72$exitCode = $LASTEXITCODE 73cmake --build build --target functionaltest-summary 74exit $exitCode 75 76- if : ${{ matrix.test == 'old' }} 77uses : msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2.32.0 78with : 79update : true 80install : >- 81diffutils 82unzip 83pacboy : >- 84make:p gcc:p 85release : false 86 87- if : ${{ matrix.test == 'old' }} 88name : oldtest 89shell : msys2 {0} 90run : | 91 cd test/old/testdir 92 mingw32-make VERBOSE=1