-
Notifications
You must be signed in to change notification settings - Fork 65
44 lines (40 loc) · 931 Bytes
/
build-linux.yml
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
name: full-check
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: install_dependencies
run: |
sudo apt-get update
sudo apt-get remove -yq libgd3 nginx
sudo apt-get install -yq libgd-dev libpng-dev zlib1g-dev
- name: build_and_install
run: |
cd src
./bootstrap
./configure
make
make doc
sudo make install
- name: unit_test
run: |
cd src
prove
- name: functional_test
run: |
mkdir test-mrtg
cd test-mrtg
echo "WorkDir: $GITHUB_WORKSPACE/test-mrtg" > mrtg.cfg
LANG=C /opt/mrtg-2/bin/mrtg mrtg.cfg
ls
ls | egrep mrtg-r.png
ls | egrep mrtg.ok