-
Notifications
You must be signed in to change notification settings - Fork 4
121 lines (112 loc) · 4.38 KB
/
build.yaml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Build CI
on: [push, pull_request]
jobs:
build-trusty:
runs-on: ubuntu-latest
container: ubuntu:14.04
steps:
- name: setup os
run: apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris apt-get -y install wget libz-dev libphp5-embed php5-dev autoconf automake gcc make libpcre3-dev libbz2-dev libbz2-dev libxml2-dev libkrb5-dev libdb5.3-dev git
- name: git checkout
run: |
git version
pwd
cd ${RUNNER_WORKSPACE}
rm -rf $(basename ${GITHUB_REPOSITORY})
git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git
cd $(basename ${GITHUB_REPOSITORY})
git reset --hard ${GITHUB_SHA}
- name: patch php
run: sed -ie "s#uint _res:31#uint res:31#" /usr/include/php5/main/php_output.h
- name: zabbix source install and configure
run: |
find /usr/lib /lib -name "libphp*so*"
cat /etc/*release
rm -f zabbix*
wget --content-disposition "https://cdn.zabbix.com/zabbix/sources/oldstable/4.0/zabbix-4.0.50.tar.gz";
tar xzvf zabbix*.tar.gz
cd zabbix*/
./configure
cd -
./bootstrap.sh
- name: zabbix module configure
run: |
cd zabbix*/
export ZABBIX_PATH=$PWD
cd -
CFLAGS="-w" PATH=/usr/bin:$PATH ./configure \
--prefix=$PWD/test \
--with-php=/usr \
--with-zabbix-include=$ZABBIX_PATH/include || (cat config.log;exit 1)
cat zbx_php_config.h
- name: zabbix module make
run: make
build-focal:
runs-on: ubuntu-latest
container: ubuntu:20.04
steps:
- uses: actions/checkout@v4
- name: setup os
run: apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris apt-get -y install libz-dev wget libphp-embed php-dev autoconf automake gcc make libpcre3-dev libbz2-dev libbz2-dev libxml2-dev libkrb5-dev libargon2-dev libargon2-1 libargon2-0 libsodium-dev
- name: zabbix source install and configure
run: |
find /usr/lib /lib -name "libphp*so*"
cat /etc/*release
rm -f zabbix*
wget --content-disposition "https://cdn.zabbix.com/zabbix/sources/stable/5.0/zabbix-5.0.44.tar.gz";
tar xzvf zabbix*.tar.gz
cd zabbix*/
./configure
cd -
./bootstrap.sh
- name: zabbix module configure
run: |
cd zabbix*/
export ZABBIX_PATH=$PWD
cd -
PATH=/usr/bin:$PATH ./configure \
--prefix=$PWD/test \
--with-php=/usr \
--with-zabbix-include=$ZABBIX_PATH/include || (cat config.log;exit 1)
cat zbx_php_config.h
- name: zabbix module make
run: make
build-noble:
runs-on: ubuntu-latest
container: ubuntu:24.04
steps:
- uses: actions/checkout@v4
- name: setup os
run: |
apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris apt-get install -y software-properties-common
add-apt-repository ppa:ondrej/php
DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris apt-get -y install libz-dev wget \
libphp7.4-embed php7.4-dev autoconf automake gcc make \
libpcre3-dev libbz2-dev libbz2-dev libxml2-dev libkrb5-dev libargon2-dev libargon2-1 libsodium-dev
- name: zabbix source install and configure
run: |
set -x
find /usr/lib /lib -name "libphp*so*"
cat /etc/*release
rm -f zabbix*
# wget --content-disposition "https://cdn.zabbix.com/zabbix/sources/stable/5.0/zabbix-5.0.44.tar.gz"
# wget --content-disposition "https://cdn.zabbix.com/zabbix/sources/stable/6.0/zabbix-6.0.35.tar.gz"
wget --content-disposition "https://cdn.zabbix.com/zabbix/sources/stable/7.0/zabbix-7.0.5.tar.gz"
tar xzvf zabbix*.tar.gz
cd zabbix*/
find include
./configure
cd -
./bootstrap.sh
- name: zabbix module configure
run: |
cd zabbix*/
export ZABBIX_PATH=$PWD
cd -
PATH=/usr/bin:$PATH ./configure \
--prefix=$PWD/test \
--with-php=/usr \
--with-zabbix-include=$ZABBIX_PATH/include || (cat config.log; exit 1)
cat zbx_php_config.h
- name: zabbix module make
run: make