Configure sr.ht CI.

frunk
Lonnie 2021-08-01 14:00:32 +02:00
parent 6de53c0636
commit 803a7789f0
1 changed files with 32 additions and 0 deletions

32
.builds/linux-amd64.yml Normal file
View File

@ -0,0 +1,32 @@
image: alpine/edge
sources:
- https://git.sr.ht/~lonjil/derploader
packages:
- xz
- curl-dev
environment:
version: zig-linux-x86_64-0.9.0-dev.689+507dc1f2e
tasks:
- getzig: |
wget https://ziglang.org/builds/${version}.tar.xz
tar xf ${version}.tar.xz
mv ${version} zig
echo 'export zig="'$(pwd)'/zig/zig"' >> .buildenv
- getzigmod: |
git clone https://github.com/nektro/zigmod --recursive
cd zigmod
$zig build -Dbootstrap
./zig-out/bin/zigmod ci
$zig build
echo 'export zigmod="'$(pwd)'/zig-out/bin/zigmod"' >> ../.buildenv
- fetchdeps: |
cd derploader
$zigmod ci
- build: |
cd derploader
source source-me.sh
$zig build
triggers:
- action: email
condition: failure
to: "Lonnie <lonjil@gmail.com>"