Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/external-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:

- name: Build Rust binary
if: ${{ !matrix.target }}
run: cargo build --release -p fff-nvim --no-default-features --features zlob
run: make build

- name: Install Neovim
uses: rhysd/action-setup-vim@v1
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ jobs:
- name: Install Rust
run: rustup target add ${{ matrix.target }}

# Cache the per-target build dir and cargo-zigbuild binary. Keyed by
# target so matrix legs don't collide. See issue on slow release CI.
- name: Rust cache
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
with:
key: nvim-${{ matrix.target }}

- name: Install Zig
uses: mlugg/setup-zig@v2
with:
Expand Down Expand Up @@ -215,6 +222,11 @@ jobs:
- name: Install Rust
run: rustup target add ${{ matrix.target }}

- name: Rust cache
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
with:
key: c-${{ matrix.target }}

- name: Install Zig
uses: mlugg/setup-zig@v2
with:
Expand Down Expand Up @@ -328,6 +340,11 @@ jobs:
- name: Install Rust
run: rustup target add ${{ matrix.target }}

- name: Rust cache
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
with:
key: mcp-${{ matrix.target }}

- name: Install Zig
uses: mlugg/setup-zig@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ members = [

resolver = "2"

[workspace.lints.clippy]
module_inception = "allow"

[workspace.dependencies]
fff-grep = { version = "0.9.6", path = "crates/fff-grep" }
fff-query-parser = { version = "0.9.6", path = "crates/fff-query-parser", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ SMOKE_BIN := $(TARGET_DIR)/fff_c_smoke
SMOKE_SRC := crates/fff-c/tests/smoke.c
SMOKE_INCLUDE := crates/fff-c/include

test-c-smoke: build-c-lib
test-c-smoke: build
$(CC) $(CFLAGS) -I $(SMOKE_INCLUDE) -L $(TARGET_DIR) \
-Wl,-rpath,@loader_path/../target/release \
-Wl,-rpath,$$(pwd)/$(TARGET_DIR) \
Expand Down Expand Up @@ -197,7 +197,7 @@ test-bun-compile: prepare-bun-packaged
rm -f packages/fff-bun/glob-bench-bin packages/fff-bun/glob-bench-bin.exe

test-node: prepare-node
cd packages/fff-node && npm run build && node test/e2e.mjs
cd packages/fff-node && npm run build && node test/e2e.mjs && node test/watch.mjs

test-js: test-bun test-node

Expand Down
3 changes: 3 additions & 0 deletions crates/fff-c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ edition = "2024"
description = "Raw C api of FFF file finder"
license = "MIT"

[lints]
workspace = true

[lib]
crate-type = ["cdylib"]

Expand Down
Loading
Loading