Replace environment self-assembly with pre-build Zig image
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kayomn 2022-10-01 20:39:21 +01:00
parent f555e6bf30
commit 4bd1c57899
1 changed files with 1 additions and 9 deletions

View File

@ -3,14 +3,6 @@ name: Build and Test
steps:
- name: Build and Test
image: alpine
image: euantorano/zig:0.9.1
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/
- apk --no-cache add libc-dev
- zig test src/main.zig