-
Notifications
You must be signed in to change notification settings - Fork 128
59 lines (56 loc) · 1.37 KB
/
build.yml
File metadata and controls
59 lines (56 loc) · 1.37 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
name: C/C++ CI
on:
push:
pull_request:
branches: [ "master" ]
jobs:
linux:
strategy:
matrix:
os: [ubuntu-24.04, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: sudo apt install -y pkg-config
- name: autoconf
run: autoreconf -vif
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: brew install pkg-config libtool autoconf automake groff
- name: configure
run: LSOF_INCLUDE=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include ./Configure -n darwin
- name: make
run: make -j 2
- name: test
run: bash ./check.bash darwin
- name: autotools build
run: |
git clean -fdx .
autoreconf -vif
./configure
make
DESTDIR=$PWD/prefix make install
make check
- name: dist build and test
run: |
make dist
mkdir temp
cd temp
tar xvf ../lsof-*.tar.gz
cd lsof-*
./configure
make
DESTDIR=$PWD/prefix make install
make check