4c1a70e412
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
30 lines
863 B
YAML
30 lines
863 B
YAML
image: alpine/edge
|
|
oauth: git.sr.ht/OBJECTS:RW git.sr.ht/REPOSITORIES:RO git.sr.ht/PROFILE:RO
|
|
packages:
|
|
- go
|
|
- make
|
|
- hut
|
|
sources:
|
|
- git@git.sr.ht:~timharek/yr
|
|
triggers:
|
|
- action: email
|
|
condition: failure
|
|
to: Tim Hårek Andreassen <tim@harek.no>
|
|
tasks:
|
|
- setup: |
|
|
echo 'cd yr' >> ~/.buildenv
|
|
- test: |
|
|
make test
|
|
- build: |
|
|
tag=$(git describe --exact-match --tags HEAD 2>/dev/null || true)
|
|
if [ -z "$tag" ]; then
|
|
echo "Current commit is not a tag; not building anything"
|
|
complete-build
|
|
fi
|
|
|
|
version=$(echo "$tag" | tr -d 'v')
|
|
|
|
make GOOS="darwin" ARCH="amd64" build-release
|
|
make GOOS="dawrin" ARCH="aarch64" build-release
|
|
make GOOS="linux" ARCH="amd64" build-release
|
|
make GOOS="windows" ARCH="amd64" build-release
|