mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
74 lines
1.9 KiB
YAML
74 lines
1.9 KiB
YAML
name: windows
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
build_flags:
|
|
type: string
|
|
functionaltest_timeout:
|
|
default: 20
|
|
type: number
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
windows:
|
|
runs-on: windows-2022
|
|
timeout-minutes: 45
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
test: [functional, old]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: ./.github/actions/setup
|
|
|
|
- name: Build deps
|
|
run: |
|
|
cmake -S cmake.deps -B .deps -G Ninja -D CMAKE_BUILD_TYPE='RelWithDebInfo'
|
|
cmake --build .deps
|
|
|
|
- name: Build
|
|
run: |
|
|
cmake --preset ci -D CMAKE_BUILD_TYPE='RelWithDebInfo' ${{ inputs.build_flags }}
|
|
cmake --build build
|
|
|
|
- name: Install test deps
|
|
run: |
|
|
$PSNativeCommandArgumentPassing = 'Legacy'
|
|
|
|
& build\bin\nvim.exe "--version"
|
|
|
|
# Ensure that the "win32" feature is set.
|
|
& build\bin\nvim -u NONE --headless -c 'exe !has(\"win32\").\"cq\"'
|
|
|
|
python -m pip install pynvim
|
|
# Sanity check
|
|
python -c "import pynvim; print(str(pynvim))"
|
|
|
|
node --version
|
|
npm.cmd --version
|
|
|
|
npm.cmd install -g neovim
|
|
Get-Command -CommandType Application neovim-node-host.cmd
|
|
npm.cmd link neovim
|
|
|
|
- if: ${{ matrix.test == 'functional' }}
|
|
name: functionaltest
|
|
timeout-minutes: ${{ inputs.functionaltest_timeout }}
|
|
run: cmake --build build --target functionaltest
|
|
|
|
- if: ${{ matrix.test == 'old' }}
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
update: true
|
|
install: unzip
|
|
pacboy: >-
|
|
make:p gcc:p diffutils:p
|
|
release: false
|
|
|
|
- if: ${{ matrix.test == 'old' }}
|
|
name: oldtest
|
|
shell: msys2 {0}
|
|
run: |
|
|
cd test/old/testdir
|
|
mingw32-make VERBOSE=1
|