2022-09-28 19:29:16 +02:00
|
|
|
kind: pipeline
|
2024-07-06 21:27:42 +02:00
|
|
|
type: docker
|
2022-10-01 21:40:23 +02:00
|
|
|
name: continuous integration
|
2022-09-28 19:29:16 +02:00
|
|
|
|
|
|
|
steps:
|
2024-07-06 21:27:42 +02:00
|
|
|
- name: setup
|
|
|
|
image: ubuntu:latest
|
|
|
|
commands:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y wget gnupg software-properties-common
|
|
|
|
- apt-get install -y sdl2-dev glslang-tools spirv-tools
|
|
|
|
- wget https://ziglang.org/download/0.10.1/zig-linux-x86_64-0.10.1.tar.xz
|
|
|
|
- tar -xf zig-linux-x86_64-0.10.1.tar.xz
|
|
|
|
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-0.10.1
|
|
|
|
- zig version
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: ubuntu:latest
|
|
|
|
commands:
|
|
|
|
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-0.10.1
|
|
|
|
- zig build
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: ubuntu:latest
|
|
|
|
commands:
|
|
|
|
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-0.10.1
|
|
|
|
- zig build test
|