From f16863d76ba0f63bac10949de95396575a26178b Mon Sep 17 00:00:00 2001 From: kranurag7 <81210977+kranurag7@users.noreply.github.com> Date: Mon, 25 Nov 2024 07:51:06 +0530 Subject: [PATCH] include helix runtime as part of helix package (#35092) --- helix.yaml | 21 ++++++++++++++++----- helix/cargobump-deps.yaml | 5 +++++ 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 helix/cargobump-deps.yaml diff --git a/helix.yaml b/helix.yaml index 02a9a039f3c..ead0939fbc6 100644 --- a/helix.yaml +++ b/helix.yaml @@ -1,7 +1,7 @@ package: name: helix version: "24.07" - epoch: 1 + epoch: 2 description: "A post-modern modal text editor." copyright: - license: MPL-2.0 @@ -15,6 +15,8 @@ environment: - openssf-compiler-options - rust - wolfi-base + environment: + HELIX_DEFAULT_RUNTIME: "/usr/lib/helix/runtime" pipeline: - uses: git-checkout @@ -23,11 +25,20 @@ pipeline: expected-commit: 079f544260f4f5eaff08104bf07abd57bfb7b611 tag: ${{package.version}} - - name: Configure and build + - uses: rust/cargobump + + - name: Build + uses: cargo/build + with: + opts: --locked --profile opt + output-dir: target/opt + output: hx + + - name: Helix Runtime runs: | - cargo install --path helix-term --locked - mkdir -p ${{targets.destdir}}/usr/bin/ - mv target/release/hx ${{targets.destdir}}/usr/bin/ + rm -rf runtime/grammars/sources + mkdir -p ${{targets.destdir}}/usr/lib/helix/ + cp -r runtime ${{targets.destdir}}/usr/lib/helix/ - uses: strip diff --git a/helix/cargobump-deps.yaml b/helix/cargobump-deps.yaml new file mode 100644 index 00000000000..4bc9136acec --- /dev/null +++ b/helix/cargobump-deps.yaml @@ -0,0 +1,5 @@ +packages: + - name: gix-attributes + version: 0.22.3 + - name: gix-path + version: 0.10.11