Skip to content

Commit 68f8777

Browse files
committed
[darwin] Add macOS CI job to GitHub Actions
1 parent 2748fda commit 68f8777

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [ "master" ]
77

88
jobs:
9-
build:
9+
linux:
1010
strategy:
1111
matrix:
1212
os: [ubuntu-24.04, ubuntu-22.04]
@@ -25,3 +25,35 @@ jobs:
2525
run: make check
2626
- name: make distcheck
2727
run: make distcheck
28+
29+
macos:
30+
runs-on: macos-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- name: install dependencies
34+
run: brew install pkg-config libtool autoconf automake groff
35+
- name: configure
36+
run: LSOF_INCLUDE=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include ./Configure -n darwin
37+
- name: make
38+
run: make -j 2
39+
- name: test
40+
run: bash ./check.bash darwin
41+
- name: autotools build
42+
run: |
43+
git clean -fdx .
44+
autoreconf -vif
45+
./configure
46+
make
47+
DESTDIR=$PWD/prefix make install
48+
make check
49+
- name: dist build and test
50+
run: |
51+
make dist
52+
mkdir temp
53+
cd temp
54+
tar xvf ../lsof-*.tar.gz
55+
cd lsof-*
56+
./configure
57+
make
58+
DESTDIR=$PWD/prefix make install
59+
make check

0 commit comments

Comments
 (0)