Compare commits

..

1 Commits

Author SHA1 Message Date
6caa5f1aa1
update CI for zig 0.9.1/use variable for same
Some checks failed
continuous-integration/drone/push Build is failing
2022-03-09 16:52:07 -08:00

View File

@ -6,12 +6,6 @@ steps:
- name: make - name: make
image: alpine:3.15.0 image: alpine:3.15.0
environment: environment:
USERNAME:
from_secret: docker_username
PASSWORD:
from_secret: docker_password
REGISTRY:
from_secret: docker_registry
ZIG_VERSION: 0.9.1 ZIG_VERSION: 0.9.1
commands: commands:
# DRONE_STAGE_ARCH is fine, but we can't substitute directly because zig # DRONE_STAGE_ARCH is fine, but we can't substitute directly because zig
@ -22,9 +16,9 @@ steps:
# #
# DRONE_STAGE_ARCH=amd64 # DRONE_STAGE_ARCH=amd64
# DRONE_STAGE_ARCH=arm64 # DRONE_STAGE_ARCH=arm64
- wget https://ziglang.org/download/${ZIG_VERSION}/zig-linux-x86_64-${ZIG_VERSION}.tar.xz - wget https://ziglang.org/download/$${ZIG_VERSION}/zig-linux-x86_64-$${ZIG_VERSION}.tar.xz
- tar x -C /usr/local -f zig-linux-${ZIG_VERSION}.tar.xz - tar x -C /usr/local -f zig-linux-$${ZIG_VERSION}.tar.xz
- ln -s /usr/local/zig-linux-${ZIG_VERSION}/zig /usr/local/bin/zig - ln -s /usr/local/zig-linux-$${ZIG_VERSION}/zig /usr/local/bin/zig
- apk add git - apk add git
- (cd codegen && zig build test) - (cd codegen && zig build test)
- zig build -Dfetch # implicitly does a codegen - zig build -Dfetch # implicitly does a codegen