forked from sourcegraph/sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comby.yaml
66 lines (64 loc) · 1.7 KB
/
comby.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package:
name: comby
version: 1.8.1
epoch: 3
description: "A code rewrite tool for structural search and replace that supports ~every language."
target-architecture:
- x86_64
copyright:
- paths:
- "*"
attestation: 'Copyright 2019 Rijnard van Tonder'
license: 'Apache License 2.0'
dependencies:
runtime:
environment:
contents:
repositories:
- https://packages.wolfi.dev/os
keyring:
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
packages:
- wolfi-base
- busybox
- ca-certificates-bundle
- build-base
- autoconf
- pcre-dev
- zlib-dev
- m4
- gmp-dev
- libev-dev
- sqlite-libs
- sqlite-dev
- wget
# opam deps
- posix-libc-utils
- patch
- bubblewrap
pipeline:
- runs: |
ls -al $HOME
# Fetch Comby source
- uses: fetch
with:
uri: https://github.com/comby-tools/comby/archive/refs/tags/${{package.version}}.tar.gz
expected-sha256: 04d51cf742bbbf5e5fda064a710be44537fac49bff598d0e9762a3a799d666e2
strip-components: 0
# Download and configure opam
# Safe to use --disable-sandboxing as melange builds within a sandbox
- runs: |
wget https://github.com/ocaml/opam/releases/download/2.1.4/opam-2.1.4-x86_64-linux -O opam
chmod +x opam
mv opam /usr/bin
opam init --disable-sandboxing
opam switch create 4.11.0 4.11.0
eval $(opam env --switch=4.11.0)
cd comby-${{package.version}}/
opam install . --deps-only --yes
make
make test
make install
- runs: |
mkdir -p ${{targets.destdir}}/usr/bin/
cp $HOME/.opam/4.11.0/bin/comby ${{targets.destdir}}/usr/bin/