mirror of
https://github.com/neovim/neovim.git
synced 2026-04-03 06:09:27 +00:00
ci: bump msys2/setup-msys2
Bumps the github-actions group with 1 update in the / directory: [msys2/setup-msys2](https://github.com/msys2/setup-msys2).
Updates `msys2/setup-msys2` from 2.30.0 to 2.31.0
- [Release notes](https://github.com/msys2/setup-msys2/releases)
- [Changelog](https://github.com/msys2/setup-msys2/blob/main/CHANGELOG.md)
- [Commits](4f806de0a5...cafece8e6b)
---
updated-dependencies:
- dependency-name: msys2/setup-msys2
dependency-version: 2.31.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
91 lines
2.4 KiB
YAML
91 lines
2.4 KiB
YAML
name: windows
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
build_flags:
|
|
type: string
|
|
functionaltest_timeout:
|
|
default: 20
|
|
type: number
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
windows:
|
|
runs-on: windows-2025
|
|
timeout-minutes: 45
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
test: [functional, old]
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- 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
|
|
env:
|
|
BUILD_FLAGS: ${{ inputs.build_flags }}
|
|
run: |
|
|
cmake --preset ci -D CMAKE_BUILD_TYPE='RelWithDebInfo' $env: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 }}
|
|
env:
|
|
# With parallel tests, use shorter timeout for a single group.
|
|
TEST_TIMEOUT: 600
|
|
run: |
|
|
$ErrorActionPreference = 'Continue'
|
|
# `-k 0` tells ninja to continue running all targets even if some fail.
|
|
cmake --build build --target functionaltest-parallel -j 2 -- -k 0
|
|
$exitCode = $LASTEXITCODE
|
|
cmake --build build --target functionaltest-summary
|
|
exit $exitCode
|
|
|
|
- if: ${{ matrix.test == 'old' }}
|
|
uses: msys2/setup-msys2@cafece8e6baf9247cf9b1bf95097b0b983cc558d # v2.31.0
|
|
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
|