.gitlab-ci.yml 3.62 KB
Newer Older
1
2
3
4
5
6
7
stages:
    - build

variables:
    GIT_SUBMODULE_STRATEGY: normal

build-debian:
8
    image: registry.videolan.org/vlc-debian-unstable:20200529132440
9
10
    stage: build
    tags:
11
        - docker
12
13
14
15
16
17
18
19
20
21
22
        - amd64
    script:
        - ./bootstrap
        - mkdir build
        - cd build
        - ../configure --without-libaacs
        - make -j $(getconf _NPROCESSORS_ONLN)

build-macos:
    stage: build
    tags:
23
24
        - catalina
        - amd64
25
    script:
26
27
28
        - curl -sS -O https://artifacts.videolan.org/vlc/macos/vlc-contrib-x86_64-apple-darwin19-45c21cd73727ddcd1af843a34dc4ca8648cc872c.tar.bz2
        - tar xf vlc-contrib-x86_64-apple-darwin19-45c21cd73727ddcd1af843a34dc4ca8648cc872c.tar.bz2
        - cd x86_64-apple-darwin19
29
30
31
32
33
34
35
36
37
38
39
        - curl -sS -o ./change_prefix.sh 'https://git.videolan.org/?p=vlc.git;a=blob_plain;f=contrib/src/change_prefix.sh;hb=HEAD'
        - chmod +x ./change_prefix.sh
        - ./change_prefix.sh
        - export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:`pwd -P`/lib/pkgconfig/"
        - export PATH="$PATH:`pwd -P`/bin/"
        - cd ../
        - ./bootstrap
        - mkdir build
        - cd build
        - ../configure --without-libaacs
        - make -j $(getconf _NPROCESSORS_ONLN)
40
41
42
43
44
45
        - make install DESTDIR=`pwd`/artifacts
    artifacts:
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
        paths:
            - build/artifacts/
        expire_in: 1 week
46
47

build-win64:
48
    image: registry.videolan.org/vlc-debian-win64:20201106143728
49
50
    stage: build
    tags:
51
        - docker
52
53
        - amd64
    script:
54
55
        - wget -nv https://artifacts.videolan.org/vlc/win64/vlc-contrib-x86_64-w64-mingw32-45c21cd73727ddcd1af843a34dc4ca8648cc872c.tar.bz2
        - tar xf vlc-contrib-x86_64-w64-mingw32-45c21cd73727ddcd1af843a34dc4ca8648cc872c.tar.bz2
56
57
58
59
60
61
62
63
64
65
66
67
        - cd x86_64-w64-mingw32
        - wget -nv -O ./change_prefix.sh 'https://git.videolan.org/?p=vlc.git;a=blob_plain;f=contrib/src/change_prefix.sh;hb=HEAD'
        - chmod +x ./change_prefix.sh
        - ./change_prefix.sh
        - cd ..
        - export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:`realpath x86_64-w64-mingw32`/lib/pkgconfig/"
        - export PATH="$PATH:`realpath x86_64-w64-mingw32`/bin/"
        - ./bootstrap
        - mkdir build
        - cd build
        - ../configure --host=x86_64-w64-mingw32 --without-libaacs
        - make -j $(getconf _NPROCESSORS_ONLN)
68
69
70
71
72
73
        - make install DESTDIR=`pwd`/artifacts
    artifacts:
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
        paths:
            - build/artifacts/
        expire_in: 1 week
74
75

build-win32:
76
    image: registry.videolan.org/vlc-debian-win32:20201106141924
77
78
    stage: build
    tags:
79
        - docker
80
81
        - amd64
    script:
82
83
        - wget -nv https://artifacts.videolan.org/vlc/win32/vlc-contrib-i686-w64-mingw32-45c21cd73727ddcd1af843a34dc4ca8648cc872c.tar.bz2
        - tar xf vlc-contrib-i686-w64-mingw32-45c21cd73727ddcd1af843a34dc4ca8648cc872c.tar.bz2
84
85
86
87
88
89
90
91
92
93
94
95
        - cd i686-w64-mingw32
        - wget -nv -O ./change_prefix.sh 'https://git.videolan.org/?p=vlc.git;a=blob_plain;f=contrib/src/change_prefix.sh;hb=HEAD'
        - chmod +x ./change_prefix.sh
        - ./change_prefix.sh
        - cd ..
        - export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:`realpath i686-w64-mingw32`/lib/pkgconfig/"
        - export PATH="$PATH:`realpath i686-w64-mingw32`/bin/"
        - ./bootstrap
        - mkdir build
        - cd build
        - ../configure --host=i686-w64-mingw32 --without-libaacs
        - make -j $(getconf _NPROCESSORS_ONLN)
96
97
98
99
100
101
        - make install DESTDIR=`pwd`/artifacts
    artifacts:
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
        paths:
            - build/artifacts/
        expire_in: 1 week