-
Notifications
You must be signed in to change notification settings - Fork 47
85 lines (80 loc) · 2.38 KB
/
ci.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
test:
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [windows-latest]
# neovim: [v0.9.5, v0.10.2, Nightly]
neovim: [v0.10.2]
include:
# - neovim: v0.9.5
# features: "--features neovim-0-9"
- neovim: v0.10.2
features: "--features neovim-0-10"
# - neovim: Nightly
# features: "--features neovim-nightly"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Neovim ${{ matrix.neovim }}
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim }}
- name: Install libluajit (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libluajit-5.1-dev
- name: Install libluajit (macOS)
if: runner.os == 'macOS'
run: brew install luajit
- name: Install libluajit (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
choco install msys2
refreshenv
C:\msys64\msys2_shell.cmd -defterm -here -no-start -mingw64 -shell sh -c "pacman -S mingw-w64-x86_64-luajit --noconfirm"
echo "C:\msys64\mingw64\bin" >> $env:GITHUB_PATH
- name: Install latest stable `rustc`
uses: dtolnay/rust-toolchain@stable
- name: Run tests
run: cargo build --workspace ${{ matrix.features }}
working-directory: .
# clippy:
# name: clippy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@nightly
# with:
# components: clippy
# - run: cargo clippy --features neovim-nightly -- -D warnings
#
# docs:
# name: docs
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@nightly
# - run: RUSTFLAGS="-D warnings" RUSTDOCFLAGS="--cfg docsrs" cargo doc --features neovim-nightly
#
# format:
# name: format
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@nightly
# with:
# components: rustfmt
# - run: cargo fmt --check