.gitlab-ci.yml 2.78 KB
Newer Older
1 2 3 4
stages:
    - build

build-debian:
5
    image: registry.videolan.org:5000/dav1d-debian-unstable:20180928151533
6 7 8 9 10
    stage: build
    tags:
        - debian
        - amd64
    script:
11
        - env CFLAGS='-Werror' meson build --buildtype release
12
        - ninja -C build
Marvin Scholz's avatar
Marvin Scholz committed
13
        - cd build && meson test -v
14

15 16 17 18 19 20 21
build-debian-static:
    image: registry.videolan.org:5000/dav1d-debian-unstable:20180928151533
    stage: build
    tags:
        - debian
        - amd64
    script:
22
        - env CFLAGS='-Werror' meson build --buildtype release --default-library static
23 24 25
        - ninja -C build
        - cd build && meson test -v

26
build-win32:
27
    image: registry.videolan.org:5000/dav1d-debian-unstable:20180928151533
28 29 30 31
    stage: build
    tags:
        - win32
    script:
32 33 34 35 36 37
        - env CFLAGS='-Werror'
            meson build --buildtype release
                        --libdir lib
                        --prefix "$(pwd)/build/dav1d_install"
                        --cross-file /opt/crossfiles/i686-w64-mingw32.meson
                        -Ddefault_library=both
38 39
        - ninja -C build
        - ninja -C build install
40 41 42 43 44
    artifacts:
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
        paths:
            - build/dav1d_install/
        expire_in: 1 week
45 46

build-win64:
47
    image: registry.videolan.org:5000/dav1d-debian-unstable:20180928151533
48 49 50 51
    stage: build
    tags:
        - win64
    script:
52 53 54 55 56 57
        - env CFLAGS='-Werror'
            meson build --buildtype release
                        --libdir lib
                        --prefix "$(pwd)/build/dav1d_install"
                        --cross-file /opt/crossfiles/x86_64-w64-mingw32.meson
                        -Ddefault_library=both
58 59
        - ninja -C build
        - ninja -C build install
60 61 62 63 64
    artifacts:
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
        paths:
            - build/dav1d_install/
        expire_in: 1 week
65 66 67 68 69 70 71

build-debian-aarch64:
    stage: build
    tags:
        - aarch64
        - debian
    script:
72
        - env CFLAGS='-Werror' meson build --buildtype release
73 74 75 76 77 78 79 80 81 82 83 84 85
        - ninja -C build
        - cd build && meson test -v

build-debian-aarch64-clang-5:
    stage: build
    tags:
        - aarch64
        - clang5
        - debian
    script:
        - env CC=clang-5.0 CFLAGS='-integrated-as' meson build --buildtype release
        - ninja -C build
        - cd build && meson test -v
86 87 88 89 90 91

build-macos:
    stage: build
    tags:
        - macos
    script:
92
        - env CFLAGS='-Werror' meson build --buildtype release -Ddefault_library=both
93 94
        - ninja -C build
        - cd build && meson test -v
95 96

build-debian-werror:
97
    image: dav1d-debian-aarch64:201810240631
98 99
    stage: build
    tags:
100
        - aarch64
101 102
        - debian
    script:
103
        - env CC='clang-7' CFLAGS='-Werror' meson build -Dbuild_tests=false
104
        - ninja -C build