-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (30 loc) · 837 Bytes
/
c-cpp.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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -y autoconf automake libtool
- name: Check for configure.ac
run: |
if [ ! -f configure.ac ]; then
echo "Error: configure.ac not found!"
exit 1
fi
- name: Generate aclocal.m4
run: aclocal
- name: Add missing auxiliary files
run: automake --add-missing --copy
- name: Generate configure script
run: autoconf
- name: Run configure script
run: ./configure
- name: Build
run: make
- name: Check
run: make check
- name: Distcheck
run: make distcheck