github: enable the watchman feature in pre-built binaries

This commit is contained in:
Martin von Zweigbergk 2023-07-12 09:18:30 -07:00 committed by Martin von Zweigbergk
parent ddd6c3b27b
commit 152a0683e2
3 changed files with 3 additions and 2 deletions

View file

@ -43,7 +43,7 @@ jobs:
toolchain: stable
target: ${{ matrix.target }}
- name: Build release binary
run: cargo build --target ${{ matrix.target }} --verbose --release --features vendored-openssl
run: cargo build --target ${{ matrix.target }} --verbose --release --features packaging,vendored-openssl
- name: Build archive
shell: bash
run: |

View file

@ -77,6 +77,7 @@ testutils = { path = "lib/testutils" }
[features]
default = []
bench = ["criterion"]
packaging = ["watchman"]
vendored-openssl = ["git2/vendored-openssl", "jj-lib/vendored-openssl"]
watchman = ["jj-lib/watchman"]

View file

@ -40,7 +40,7 @@
pname = "jujutsu";
version = "unstable-${self.shortRev or "dirty"}";
buildNoDefaultFeatures = true;
buildFeatures = [ "watchman" ];
buildFeatures = [ "packaging" ];
cargoBuildFlags = ["--bin" "jj"]; # don't build and install the fake editors
useNextest = true;
src = filterSrc ./. [