-
Notifications
You must be signed in to change notification settings - Fork 108
50 lines (44 loc) · 1.16 KB
/
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
43
44
45
46
47
48
49
50
name: C/C++ CI
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: dependencies
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y yaggo gettext swig python3-dev ruby-dev libperl-dev
- name: autotools
run: autoreconf -fi
- name: configure
run: ./configure --enable-all-binding --enable-swig CXX=g++-10 CC=gcc-10
- name: make
run: make -j$(nproc)
- name: make check
run: make -j$(nproc) check
- name: Check logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: checklog
path: "**/*tests/*.log"
- name: make distcheck
run: make -j$(nproc) distcheck
- name: Distcheck logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: distchecklog
path: |
**/*tests/*.log
**/*tests/**/tee.*
- name: Distribution tar ball
uses: actions/upload-artifact@v4
with:
name: disttarball
path: "mummer-*.tar.gz"