~kt/udprelay

udprelay/.build.yml -rw-r--r-- 999 bytes
7ef0adeaKatie Wolfe Add note about -timeout parsing specifics 11 months ago
                                                                                
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
image: alpine/3.12
packages:
- scdoc
- go
- musl-dev
- curl
- groff
- util-linux # col command for stripping plaintext output from groff
sources:
- https://git.sr.ht/~kt/udprelay
secrets:
- 7275750e-9938-4ba3-9c7a-ab75c8145edd # access token for ref artifacts
tasks:
- build: |
    cd udprelay
    go get -v .
    make docs docs-text
    make udprelay-linux-386
    make udprelay-linux-amd64
    make udprelay-linux-arm64
- upload: |
    ref="$(git -C udprelay describe --exact-match HEAD)" || exit 0
    for f in udprelay/{udprelay-linux-*,udprelay.{1,7}{,.txt}}; do
      filename="$(basename "${f}")"
      filename="udprelay-${ref}-${filename#udprelay-}"
      curl -H @.sr.ht.headers -F "file=@$f;filename=\"${filename}\"" "https://git.sr.ht/api/~kt/repos/udprelay/artifacts/${ref}"
    done
artifacts:
- udprelay/udprelay-linux-386
- udprelay/udprelay-linux-amd64
- udprelay/udprelay-linux-arm64
- udprelay/udprelay.1
- udprelay/udprelay.1.txt
- udprelay/udprelay.7
- udprelay/udprelay.7.txt