forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
syntect-server.yaml
45 lines (40 loc) · 1.23 KB
/
syntect-server.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
# Melange-based replacement for https://sourcegraph.sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/docker-images/syntax-highlighter/Dockerfile?L2
package:
name: syntect-server
version: 4.3
epoch: 0
description: "HTTP server stabilizer for unruly servers"
target-architecture:
- x86_64
copyright:
- paths:
- "*"
attestation: 'Copyright (c) 2017 Sourcegraph'
license: 'MIT License'
dependencies:
runtime:
environment:
contents:
repositories:
- https://packages.wolfi.dev/os
keyring:
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
packages:
- wolfi-base
- build-base
- rust
pipeline:
# Tie version of syntect-server to Sourcegraph release
- uses: git-checkout
with:
repository: https://github.com/sourcegraph/sourcegraph/
branch: ${{package.version}}
destination: /sourcegraph
- runs: |
cd /sourcegraph/docker-images/syntax-highlighter
cargo test --release --workspace
cargo rustc --release
- runs: |
cd /sourcegraph/docker-images/syntax-highlighter
mkdir -p ${{targets.destdir}}/usr/local/bin/
cp target/release/syntect_server ${{targets.destdir}}/usr/local/bin/syntax_highlighter