]> git.jsancho.org Git - lugaru.git/blob - .gitlab-ci.yml
CI: AppVeyor x86 -> Win32
[lugaru.git] / .gitlab-ci.yml
1 image: fedora:latest
2
3 cache:
4   key: dnf
5   paths:
6   - /var/cache/dnf
7
8 before_script:
9   - dnf --quiet --assumeyes install /usr/bin/cmake "pkgconfig(libjpeg)" "pkgconfig(openal)" "pkgconfig(sdl)" "pkgconfig(glu)" "pkgconfig(libpng)" "pkgconfig(zlib)" "pkgconfig(vorbis)" "pkgconfig(vorbisfile)" "pkgconfig(ogg)" make
10
11 build_gcc:
12   stage: build
13   script:
14     - dnf --quiet --assumeyes install gcc gcc-c++
15     - export CC=gcc; export CXX=g++
16     - mkdir -p x86_64-linux-gnu-gcc gcc-build; cd x86_64-linux-gnu-gcc
17     - cmake .. -DLUGARU_INSTALL_PREFIX=/builds/osslugaru/lugaru/gcc-build
18     - make -j4; make install
19   artifacts:
20     expire_in: 7d
21     paths:
22       - ./gcc-build
23   tags:
24     - shared
25
26 build_clang:
27   stage: build
28   script:
29     - dnf --quiet --assumeyes install clang
30     - export CC=clang; export CXX=clang++
31     - mkdir -p x86_64-linux-gnu-clang clang-build; cd x86_64-linux-gnu-clang
32     - cmake .. -DLUGARU_INSTALL_PREFIX=/builds/osslugaru/lugaru/clang-build
33     - make -j4; make install
34   artifacts:
35     expire_in: 7d
36     paths:
37       - ./clang-build
38   tags:
39     - shared
40
41 build_mingw32:
42   stage: build
43   script:
44     - dnf --quiet --assumeyes install mingw32-gcc mingw32-gcc-c++ mingw32-binutils mingw32-headers
45     - export PKG_CONFIG_LIBDIR="/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/i686-w64-mingw32/sys-root/mingw/share/pkgconfig"
46     - export PATH=/usr/i686-w64-mingw32/bin:$PATH
47     - mkdir -p i686-w64-mingw32 mingw32-build; cd i686-w64-mingw32
48     - cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw32.cmake -DLUGARU_INSTALL_PREFIX=/builds/osslugaru/lugaru/mingw32-build -DLUGARU_FORCE_INTERNAL_SDL=True -DLUGARU_FORCE_INTERNAL_GLU=True -DLUGARU_FORCE_INTERNAL_JPEG=True -DLUGARU_FORCE_INTERNAL_PNG=True -DLUGARU_FORCE_INTERNAL_VORBIS=True -DLUGARU_FORCE_INTERNAL_ZLIB=True -DLUGARU_FORCE_INTERNAL_OPENAL=True -DLUGARU_FORCE_INTERNAL_OPENGL=True
49     - make -j4; make install
50   artifacts:
51     expire_in: 7d
52     paths:
53       - ./mingw32-build
54   tags:
55     - shared
56
57 build_mingw64:
58   stage: build
59   script:
60     - dnf --quiet --assumeyes install mingw64-gcc mingw64-gcc-c++ mingw64-binutils mingw64-headers
61     - export PKG_CONFIG_LIBDIR="/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig"
62     - export PATH=/usr/x86_64-w64-mingw32/bin:$PATH
63     - mkdir -p x86_64-w64-mingw32 mingw64-build; cd x86_64-w64-mingw32
64     - cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw64.cmake -DLUGARU_INSTALL_PREFIX=/builds/osslugaru/lugaru/mingw64-build -DLUGARU_FORCE_INTERNAL_SDL=True -DLUGARU_FORCE_INTERNAL_GLU=True -DLUGARU_FORCE_INTERNAL_JPEG=True -DLUGARU_FORCE_INTERNAL_PNG=True -DLUGARU_FORCE_INTERNAL_VORBIS=True -DLUGARU_FORCE_INTERNAL_ZLIB=True -DLUGARU_FORCE_INTERNAL_OPENAL=True
65     - make -j4; make install
66   artifacts:
67     expire_in: 7d
68     paths:
69       - ./mingw64-build
70   tags:
71     - shared