Skip to content

ci: fix zig setup to match fff.nvim #4

ci: fix zig setup to match fff.nvim

ci: fix zig setup to match fff.nvim #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
rust:
name: rust (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all --check
- name: Run Rust tests
run: cargo test --all
# Building the cdylib validates the module link (dynamic_lookup on macOS).
- name: Build native module
run: cargo build --release
lua:
name: lua (headless nvim)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install Neovim (stable)
run: |
curl -fsSL https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.tar.gz | tar xz
echo "$PWD/nvim-linux-x86_64/bin" >> "$GITHUB_PATH"
- name: Build native module and run Lua tests
run: make test-lua