-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathatuin.yaml
49 lines (41 loc) · 1.19 KB
/
atuin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package:
name: atuin
version: 18.0.2
epoch: 0
description: Magical shell history
copyright:
- license: MIT
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- rust
pipeline:
- uses: git-checkout
with:
repository: https://github.com/atuinsh/atuin
tag: v${{package.version}}
expected-commit: a78aaa78e487b2499ffd7eed86bac15aa3df0960
- runs: |
cargo build --locked --release
cd target/release
mkdir -p completions
for sh in 'bash' 'fish' 'zsh'; do
"./atuin" gen-completions -s "$sh" -o completions/
done
install -Dm755 atuin "${{targets.destdir}}"/usr/bin/atuin
install -Dm 644 "completions/${{package.name}}.bash" "${{targets.destdir}}/usr/share/bash-completion/completions/atuin"
install -Dm 644 "completions/${{package.name}}.fish" -t "${{targets.destdir}}/usr/share/fish/vendor_completions.d"
install -Dm 644 "completions/_${{package.name}}" -t "${{targets.destdir}}/usr/share/zsh/site-functions"
- uses: strip
update:
enabled: true
github:
identifier: atuinsh/atuin
strip-prefix: v
test:
pipeline:
- runs: |
atuin -V