/
githubmirror
/
lsof
Обзор
Документация
Войти
/
githubmirror
/
lsof
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/build.yml
59 строк
1 KB
Jiajie Chen
[darwin] Add macOS CI job to GitHub Actions
03 мар 2026, 14:41
03 мар 2026, 14:41
68f8777
Код
Авторство
О чём код?
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