| 1 |
stages: |
| 2 |
- build |
| 3 |
- analyze |
| 4 |
- test |
| 5 |
|
| 6 |
.ubuntu-amd64-bionic: |
| 7 |
image: registry.videolan.org/librist-ubuntu-bionic:20200501213126 |
| 8 |
stage: build |
| 9 |
tags: |
| 10 |
- docker |
| 11 |
- amd64 |
| 12 |
|
| 13 |
.ubuntu-amd64-jammy: |
| 14 |
image: registry.videolan.org/libplacebo-ubuntu-jammy:20230730213642 |
| 15 |
stage: build |
| 16 |
tags: |
| 17 |
- docker |
| 18 |
- amd64 |
| 19 |
|
| 20 |
.debian-amd64-common: |
| 21 |
image: registry.videolan.org/dav1d-debian-unstable:20200306210534 |
| 22 |
stage: build |
| 23 |
tags: |
| 24 |
- docker |
| 25 |
- amd64 |
| 26 |
|
| 27 |
build-ubuntu: |
| 28 |
extends: .ubuntu-amd64-bionic |
| 29 |
tags: |
| 30 |
- docker |
| 31 |
- avx2 |
| 32 |
- amd64 |
| 33 |
script: |
| 34 |
- meson build --buildtype release --werror |
| 35 |
- ninja -C build |
| 36 |
|
| 37 |
build-win64: |
| 38 |
extends: .debian-amd64-common |
| 39 |
script: |
| 40 |
- meson build --buildtype release |
| 41 |
--werror |
| 42 |
--libdir lib |
| 43 |
--cross-file common/ci/x86_64-w64-mingw32.meson |
| 44 |
-Ddefault_library=both |
| 45 |
-Dhave_mingw_pthreads=true |
| 46 |
- ninja -C build |
| 47 |
artifacts: |
| 48 |
paths: |
| 49 |
- build |
| 50 |
expire_in: 24 hours |
| 51 |
|
| 52 |
analyze-ubuntu: |
| 53 |
stage: analyze |
| 54 |
extends: |
| 55 |
- .ubuntu-amd64-bionic |
| 56 |
needs: ["build-ubuntu"] |
| 57 |
script: |
| 58 |
- meson build --buildtype release --werror -Dstatic_analyze=true |
| 59 |
- ninja -C build analyze |
| 60 |
dependencies: [] |
| 61 |
|
| 62 |
test-ubuntu: |
| 63 |
stage: test |
| 64 |
extends: |
| 65 |
- .ubuntu-amd64-jammy |
| 66 |
needs: ["build-ubuntu"] |
| 67 |
|
| 68 |
|
| 69 |
retry: 2 |
| 70 |
script: |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
- meson build --buildtype release -Db_sanitize=address,undefined |
| 75 |
- cd build && meson test --print-errorlogs |
| 76 |
dependencies: |
| 77 |
- build-ubuntu |
| 78 |
artifacts: |
| 79 |
when: always |
| 80 |
reports: |
| 81 |
junit: build/meson-logs/testlog.junit.xml |
| 82 |
paths: |
| 83 |
- build/meson-logs/testlog.txt |
| 84 |
- build/meson-logs/testlog.junit.xml |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
he |
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
test-win64: |
| 103 |
stage: test |
| 104 |
extends: .debian-amd64-common |
| 105 |
needs: ["build-win64"] |
| 106 |
allow_failure: true |
| 107 |
retry: 2 |
| 108 |
dependencies: |
| 109 |
- build-win64 |
| 110 |
script: |
| 111 |
- wineserver -p && wine wineboot |
| 112 |
- cd build && meson test --print-errorlogs --no-rebuild |
| 113 |
artifacts: |
| 114 |
when: on_failure |
| 115 |
paths: |
| 116 |
- build/meson-logs/testlog.txt |
| 117 |
|