-
Notifications
You must be signed in to change notification settings - Fork 238
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
82 lines (76 loc) · 1.99 KB
/
.gitlab-ci.yml
File metadata and controls
82 lines (76 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
default:
tags:
- docker
# Image from https://hub.docker.com/_/gcc/ based on Debian.
image: gcc:14
.autotools:
stage: build
before_script:
- apt-get update &&
apt-get install -y libogg-dev zip doxygen ${INSTALL_COMPILER} ${INSTALL_EXTRA}
script:
- ./autogen.sh
- ./configure ${CONFIG_FLAGS} || cat config.log
- make
- make check
variables:
INSTALL_COMPILER: gcc
autotools-gcc:
extends: .autotools
script:
- ./autogen.sh
- ./configure ${CONFIG_FLAGS} || cat config.log
- make
- make distcheck
variables:
INSTALL_EXTRA: cmake
artifacts:
paths:
- libogg-*.tar.gz
expire_in: 2 week
autotools-gcc-builddir:
extends: .autotools
script:
- ./autogen.sh
- mkdir build
- (cd build && ../configure ${CONFIG_FLAGS}) || cat config.log
- (cd build && make)
- (cd build && make check)
autotools-clang:
extends: .autotools
script:
- ./autogen.sh
- ./configure ${CONFIG_FLAGS} || cat config.log
- make
- make distcheck
variables:
INSTALL_EXTRA: cmake
INSTALL_COMPILER: clang
CC: clang
autotools-mingw:
extends: .autotools
script:
- mkdir build-mingw
- git clone https://gitlab.xiph.org/xiph/ogg.git build-mingw/ogg-mingw
- (cd build-mingw/ogg-mingw && ./autogen.sh)
- (cd build-mingw/ogg-mingw && ./configure ${CONFIG_FLAGS})
- (cd build-mingw/ogg-mingw && make)
- ./autogen.sh
- (cd build-mingw && CPPFLAGS=-I`pwd`/ogg-mingw/include LDFLAGS=-L`pwd`/ogg-mingw/src ../configure --disable-examples ${CONFIG_FLAGS})
- (cd build-mingw && make)
variables:
CONFIG_FLAGS: --disable-shared --host=x86_64-pc-linux-gnu
INSTALL_COMPILER: gcc-mingw-w64
CC: x86_64-w64-mingw32-gcc
cmake:
stage: build
before_script:
- apt-get update &&
apt-get install -y libogg-dev zip doxygen
cmake ninja-build
script:
- mkdir build
- cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
- cmake --build build
- cd build
- ctest