forked from grafana/pyroscope
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (41 loc) · 1.09 KB
/
c-cpp.yml
File metadata and controls
45 lines (41 loc) · 1.09 KB
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
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare build (Autotools)
run: |
set -e
if [ -f configure ]; then
echo "Running ./configure"
chmod +x configure
./configure
elif [ -f autogen.sh ]; then
echo "Running ./autogen.sh"
chmod +x autogen.sh
./autogen.sh
elif [ -f configure.ac ] || [ -f configure.in ]; then
echo "Running autoreconf -i"
sudo apt-get update
sudo apt-get install -y autoconf automake libtool pkg-config build-essential
autoreconf -i
chmod +x configure
./configure
else
echo "No Autotools entrypoint found (configure, autogen.sh, or configure.ac)." >&2
echo "Repository root listing:";
ls -la
exit 1
fi
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck