ona/.drone.yml

17 lines
463 B
YAML
Raw Normal View History

2022-09-28 19:29:16 +02:00
kind: pipeline
name: Build and Test
2022-09-28 19:29:16 +02:00
steps:
- name: Build and Test
image: alpine
2022-09-28 19:29:16 +02:00
commands:
- apk update && apk add curl xz
- mkdir -p /deps
- cd /deps
- curl https://ziglang.org/deps/zig+llvm+lld+clang-$(uname -m)-linux-musl-0.9.1.tar.xz -O
- tar xf zig+llvm+lld+clang-$(uname -m)-linux-musl-0.9.1.tar.xz
- mv zig+llvm+lld+clang-$(uname -m)-linux-musl-0.9.1/ local/
- cd /drone/src/
- RUN apk --no-cache add libc-dev
- zig test src/main.zig