Update Zig version in CI to 0.13.0
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kayomn 2024-07-06 22:09:04 +02:00
parent 54b443ca33
commit ea43c326e6
1 changed files with 7 additions and 5 deletions

View File

@ -5,22 +5,24 @@ name: continuous integration
steps: steps:
- name: setup - name: setup
image: ubuntu:latest image: ubuntu:latest
environment:
ZIG_VERSION: 0.13.0
commands: commands:
- apt-get update - apt-get update
- apt-get install -y xz-utils wget libsdl2-dev glslang-tools spirv-tools - apt-get install -y xz-utils wget libsdl2-dev glslang-tools spirv-tools
- wget https://ziglang.org/download/0.10.1/zig-linux-x86_64-0.10.1.tar.xz - wget https://ziglang.org/download/${ZIG_VERSION}/zig-linux-x86_64-${ZIG_VERSION}.tar.xz
- tar -xf zig-linux-x86_64-0.10.1.tar.xz - tar -xf zig-linux-x86_64-${ZIG_VERSION}.tar.xz
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-0.10.1 - export PATH=$PATH:$(pwd)/zig-linux-x86_64-${ZIG_VERSION}
- zig version - zig version
- name: build - name: build
image: ubuntu:latest image: ubuntu:latest
commands: commands:
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-0.10.1 - export PATH=$PATH:$(pwd)/zig-linux-x86_64-${ZIG_VERSION}
- zig build - zig build
- name: test - name: test
image: ubuntu:latest image: ubuntu:latest
commands: commands:
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-0.10.1 - export PATH=$PATH:$(pwd)/zig-linux-x86_64-${ZIG_VERSION}
- zig build test - zig build test