35 lines
906 B
YAML
35 lines
906 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: continuous integration
|
|
|
|
environment:
|
|
ZIG_VERSION: 0.13.0
|
|
|
|
steps:
|
|
- name: setup
|
|
image: ubuntu:latest
|
|
commands:
|
|
- apt-get update
|
|
- apt-get install -y xz-utils wget libsdl2-dev glslang-tools spirv-tools
|
|
- 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: check-tls
|
|
image: ubuntu:latest
|
|
commands:
|
|
- openssl version
|
|
- openssl ciphers -v | grep -i tls
|
|
|
|
- name: build
|
|
image: ubuntu:latest
|
|
commands:
|
|
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-$${ZIG_VERSION}
|
|
- zig build
|
|
|
|
- name: test
|
|
image: ubuntu:latest
|
|
commands:
|
|
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-$${ZIG_VERSION}
|
|
- zig build test |