ona/.drone.yml

30 lines
780 B
YAML
Raw Normal View History

2022-09-28 19:29:16 +02:00
kind: pipeline
type: docker
2022-10-01 21:40:23 +02:00
name: continuous integration
2022-09-28 19:29:16 +02:00
2024-07-07 00:37:18 +02:00
environment:
ZIG_VERSION: 0.13.0
2022-09-28 19:29:16 +02:00
steps:
- name: setup
image: ubuntu:latest
2024-07-07 00:37:18 +02:00
commands:
- apt-get update
2024-07-06 22:01:13 +02:00
- apt-get install -y xz-utils wget libsdl2-dev glslang-tools spirv-tools
2024-07-06 22:09:04 +02:00
- wget https://ziglang.org/download/${ZIG_VERSION}/zig-linux-x86_64-${ZIG_VERSION}.tar.xz
- tar -xf zig-linux-x86_64-${ZIG_VERSION}.tar.xz
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-${ZIG_VERSION}
- zig version
- name: build
image: ubuntu:latest
commands:
2024-07-06 22:09:04 +02:00
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-${ZIG_VERSION}
- zig build
- name: test
image: ubuntu:latest
commands:
2024-07-06 22:09:04 +02:00
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-${ZIG_VERSION}
- zig build test