-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (85 loc) · 2.78 KB
/
configure_make_check.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
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
name: Configure, Make, and Check
on: [push]
jobs:
configure_make_check:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
env:
LD_LIBRARY_PATH: /usr/local/lib
steps:
#------------------------------------
# Setup:
#------------------------------------
- name: Set up base system
run: |
sudo apt update
sudo apt-get -qq install -y \
libev-dev \
libyaml-dev \
apache2-utils
mkdir -p ./build/bsat
mkdir -p ./build/yimmo
#------------------------------------
# Dependencies:
#------------------------------------
- name: Checkout libbsat
uses: actions/checkout@v3
with:
repository: 'andrew-canaday/libbsat'
path: 'libbsat'
- name: Generate BSAT Configuration
run: ./autogen.sh
working-directory: ./libbsat
- name: Install libbsat
run: |
../../libbsat/configure \
--enable-silent-rules \
--silent
sudo make install
sudo ldconfig -v || echo "FYI: ldconfig failed"
working-directory: ./build/bsat
#--------------------------------------------------------------------
# Checkout, configure, make, run tests, and make dist for libyimmo:
#--------------------------------------------------------------------
- name: Checkout libyimmo
uses: actions/checkout@v3
with:
repository: ${{ github.repository }}
path: 'libyimmo'
- name: Generate Configuration
run: ./autogen.sh
working-directory: ./libyimmo
- name: Configure
run: |
../../libyimmo/configure \
--enable-maintainer-debug \
--enable-examples \
--enable-wsgi \
--enable-silent-rules \
CFLAGS=-fdiagnostics-color=always
working-directory: ./build/yimmo
- name: Compile
run: |
make 2>./yimmo-warnings.txt \
|| cat ./yimmo-warnings.txt
working-directory: ./build/yimmo
- name: Warnings
run: |
cat ./yimmo-warnings.txt
working-directory: ./build/yimmo
- name: Unit Tests
run: make VERBOSE='true' check
env:
# We didn't ldconfig, so just set the path:
LD_LIBRARY_PATH: /usr/local/lib
working-directory: ./build/yimmo
#--------------------------------------------------------------------
# Check distribution
#--------------------------------------------------------------------
- name: Run Distribution Checks
run: |
make distcheck || find . -ipath "*test*" -and -iname "*.log" -exec cat '{}' \;
make dist
working-directory: ./build/yimmo