derploader/.builds/linux-amd64.yml

34 lines
861 B
YAML
Raw Normal View History

2021-08-01 12:00:32 +00:00
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: |
2021-08-07 23:34:05 +00:00
git clone https://github.com/nektro/zigmod --depth 1 \
--recursive --shallow-submodules
2021-08-01 12:00:32 +00:00
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
2021-08-07 23:34:05 +00:00
$zig build
2021-08-01 12:00:32 +00:00
triggers:
- action: email
condition: failure
to: "Lonnie <lonjil@gmail.com>"