-
Notifications
You must be signed in to change notification settings - Fork 111
90 lines (82 loc) · 2.36 KB
/
c-cpp.yml
File metadata and controls
90 lines (82 loc) · 2.36 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
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
name: C/C++ CI
on:
push:
branches: [master, develop, "release/**", "feature/**"]
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
- 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"
testbsd:
runs-on: ubuntu-latest
name: Compile on FreeBSD
steps:
- uses: actions/checkout@v4
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y gmake yaggo autoconf automake libtool bash gcc14
run: |
autoreconf -fi && \
./configure MAKE=gmake CC=gcc14 CXX=g++14 LDFLAGS=-Wl,-rpath=/usr/local/lib/gcc14 && \
gmake -j $(sysctl -n hw.ncpu) check
testmacos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: dependencies
run: |
brew install autoconf automake libtool md5sha1sum
gem install yaggo
- name: autotools
run: autoreconf -fi
- name: configure
run: ./configure CC=gcc-14 CXX=g++-14
- name: make
run: make -j$(sysctl -n hw.ncpu)
- name: make check
run: make -j$(sysctl -n hw.ncpu) check
- name: Check logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: checklog
path: "**/*tests/*.log"