Skip to content

Commit

Permalink
include helix runtime as part of helix package (#35092)
Browse files Browse the repository at this point in the history
  • Loading branch information
kranurag7 authored Nov 25, 2024
1 parent 2277acb commit f16863d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
21 changes: 16 additions & 5 deletions helix.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -15,6 +15,8 @@ environment:
- openssf-compiler-options
- rust
- wolfi-base
environment:
HELIX_DEFAULT_RUNTIME: "/usr/lib/helix/runtime"

pipeline:
- uses: git-checkout
Expand All @@ -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

Expand Down
5 changes: 5 additions & 0 deletions helix/cargobump-deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
packages:
- name: gix-attributes
version: 0.22.3
- name: gix-path
version: 0.10.11

0 comments on commit f16863d

Please sign in to comment.