-
Notifications
You must be signed in to change notification settings - Fork 17
45 lines (44 loc) · 1.34 KB
/
windows.yml
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
---
name: Windows test
# An impure test case to help debug issues with rocks.nvim on windows
on:
# TODO: remove
pull_request:
# We only want to manually trigger this as needed
workflow_dispatch:
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Install C/C++ Compiler
uses: rlalik/setup-cpp-compiler@master
with:
compiler: clang-latest
- name: Install MSVC Compiler Toolchain
uses: ilammy/msvc-dev-cmd@v1
- name: Install Lua
uses: leso-kn/gh-actions-lua@master
with:
luaVersion: "5.1"
- name: Install Luarocks
uses: hishamhm/gh-actions-luarocks@master
with:
luarocksVersion: "3.11.0"
- name: Install neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly
- name: Install rocks.nvim
run: |
mkdir rocks
luarocks --tree ./rocks --lua-version=5.1 --server='https://nvim-neorocks.github.io/rocks-binaries/' make ./rocks.nvim-scm-1.rockspec
- name: Run neovim with rocks.nvim
shell: bash
run: |
ls rocks/lib/lua/5.1
nvim -u .github/resources/init-windows.lua -c "lua print('OK')" +q
ls rocks
# Will fail if rocks.log does not exist
cat rocks/rocks.log