File: .gitlab-ci.yml

package info (click to toggle)
ptunnel-ng 1.42-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 976 kB
  • sloc: sh: 4,335; ansic: 3,273; python: 167; makefile: 49
file content (89 lines) | stat: -rw-r--r-- 2,784 bytes parent folder | download
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
83
84
85
86
87
88
89
image: debian:stable-slim

stages:
  - build

before_script:
  - test ! -r /etc/debian_version || apt-get -qq update
  - test ! -r /etc/debian_version || apt-get install -y git debhelper dpkg-dev build-essential fakeroot flawfinder wget unzip
  - test ! -r /etc/debian_version || apt-get install -y libpcap-dev libselinux1-dev
  - test ! -r /etc/debian_version || apt-get install -y binutils-mingw-w64-i686 gcc-mingw-w64 mingw-w64-i686-dev mingw-w64-common clang
  - test ! -r /etc/debian_version || apt-get install -y autoconf automake dh-autoreconf
  - test ! -r /etc/arch-release || pacman -Sy archlinux-keyring --noconfirm
  - test ! -r /etc/arch-release || pacman -Syu --noconfirm
  - test ! -r /etc/arch-release || pacman -S --noconfirm binutils gcc base-devel git

build:
  script:
    - autoreconf -fi
    - ./configure --prefix=/
    - make install CFLAGS='-Werror' DESTDIR="$(realpath ./deploy)" V=s
  stage: build
  artifacts:
    paths:
      - deploy/
      - config.log
    when: always

build-debian:
  script:
    - dpkg-buildpackage -b -us -uc
  stage: build
  artifacts:
    paths:
      - config.log
    when: always

build-archlinux:
  image: finalduty/archlinux:daily
  script:
    - useradd builduser -m
    - passwd -d builduser
    - chown -R builduser .
    - su -m builduser bash -c 'makepkg'
    - su -m builduser bash -c 'makepkg -p PKGBUILD.dev --skipchecksums'
  stage: build

build-mingw:
  script:
    - autoreconf -fi
    - ./configure --prefix=/ --host=i686-w64-mingw32
    - make install CFLAGS='-Werror' DESTDIR="$(realpath ./deploy)" V=s
  stage: build
  artifacts:
    paths:
     - deploy/
     - config.log
    when: always

build-clang:
  script:
    - autoreconf -fi
    - CC=clang ./configure --prefix=/
    - make install CFLAGS='-Werror -Wno-error=for-loop-analysis' DESTDIR="$(realpath ./deploy)" V=s
  stage: build
  artifacts:
    paths:
      - deploy/
      - config.log
    when: always

build-android:
  cache:
    key: toolchain-cache
    paths:
      - vendor/
  script:
    - mkdir -p vendor && cd vendor
    - test -r 'android-ndk-r19-linux-x86_64.zip' || wget --progress=dot:mega 'https://dl.google.com/android/repository/android-ndk-r19-linux-x86_64.zip'
    - test -d 'android-ndk-r19' || unzip -q 'android-ndk-r19-linux-x86_64.zip'
    - cd ..
    - autoreconf -fi
    - CC=aarch64-linux-android28-clang PATH="${PATH}:$(realpath ./vendor/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/bin)" ./configure --host=aarch64-linux-android
    - PATH="${PATH}:$(realpath ./vendor/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/bin)" make install CFLAGS='-Werror -Wno-error=for-loop-analysis' DESTDIR="$(realpath ./deploy)" V=s
  stage: build
  artifacts:
    paths:
      - deploy/
      - config.log
    when: always