112 lines
2.4 KiB
YAML
112 lines
2.4 KiB
YAML
defaults: &defaults
|
|
docker:
|
|
- image: yshui/comptonci
|
|
cached-checkout: &ccheckout
|
|
just-build: &build
|
|
|
|
version: 2.1
|
|
commands:
|
|
build:
|
|
parameters:
|
|
build-config:
|
|
type: string
|
|
default:
|
|
cc:
|
|
type: string
|
|
default: cc
|
|
steps:
|
|
- restore_cache:
|
|
keys:
|
|
- source-v1-{{ .Branch }}-{{ .Revision }}
|
|
- source-v1-{{ .Branch }}-
|
|
- source-v1-
|
|
- checkout
|
|
- save_cache:
|
|
key: source-v1-{{ .Branch }}-{{ .Revision }}
|
|
paths:
|
|
- ".git"
|
|
- run:
|
|
name: config
|
|
command: CC=<< parameters.cc >> meson << parameters.build-config >> --werror . build
|
|
- run:
|
|
name: build
|
|
command: ninja -C build
|
|
test-xvfb:
|
|
steps:
|
|
- run:
|
|
name: xxx
|
|
command: xvfb-run -s "-screen 0 640x480x24" glxinfo
|
|
|
|
|
|
jobs:
|
|
basic:
|
|
<<: *defaults
|
|
steps:
|
|
- build:
|
|
build-config: -Dbuild_docs=true -Dnew_backends=true
|
|
minimal:
|
|
<<: *defaults
|
|
steps:
|
|
- build:
|
|
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false -Dnew_backends=true
|
|
nogl:
|
|
<<: *defaults
|
|
steps:
|
|
- build:
|
|
build-config: -Dopengl=false -Dnew_backends=true
|
|
noregex:
|
|
<<: *defaults
|
|
steps:
|
|
- build:
|
|
build-config: -Dregex=false -Dnew_backends=true
|
|
clang_basic:
|
|
<<: *defaults
|
|
steps:
|
|
- build:
|
|
cc: clang-6.0
|
|
build-config: -Dnew_backends=true
|
|
clang_minimal:
|
|
<<: *defaults
|
|
steps:
|
|
- build:
|
|
cc: clang-6.0
|
|
build-config: -Dopengl=false -Ddbus=false -Dregex=false -Dconfig_file=false -Dnew_backends=true
|
|
clang_nogl:
|
|
<<: *defaults
|
|
steps:
|
|
- build:
|
|
cc: clang-6.0
|
|
build-config: -Dopengl=false -Dnew_backends=true
|
|
clang_noregex:
|
|
<<: *defaults
|
|
steps:
|
|
- build:
|
|
cc: clang-6.0
|
|
build-config: -Dregex=false -Dnew_backends=true
|
|
clang_basic_nonew:
|
|
<<: *defaults
|
|
steps:
|
|
- build:
|
|
cc: clang-6.0
|
|
build-config:
|
|
basic_nonew:
|
|
<<: *defaults
|
|
steps:
|
|
- build:
|
|
build-config:
|
|
|
|
workflows:
|
|
all_builds:
|
|
jobs:
|
|
- basic
|
|
- clang_basic
|
|
- minimal
|
|
- clang_minimal
|
|
- nogl
|
|
- clang_nogl
|
|
- clang_basic_nonew
|
|
- basic_nonew
|
|
# - test-xvfb
|
|
|
|
# vim: set sw=2 ts=8 et:
|