mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-27 22:01:29 +02:00
d8c054d92f
Building the man page is optional and happens automatically if command 'lowdown' is present on the system. Add it to all possible GitHub CI files so man page conversion will be tested and fully used. Unfortunately 'lowdown' cannot be added to the musl jobs the program is available only starting from Alpine v3.15, while the musl Docker images run Alpine v3.14 (and haven't been updated in 2+ years). Also, the Snap build used Ubuntu 20.04 "Focal" which equally is too old to include Lowdown, which is available only from Ubuntu 22.04 "Jammy" onward: https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=lowdown
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: macOS CMake
|
|
|
|
on:
|
|
push:
|
|
branches: main
|
|
tags-ignore: '*.*'
|
|
paths:
|
|
- '.github/workflows/cmake-macos.yml'
|
|
- 'CMakeLists.txt'
|
|
- 'include/**'
|
|
- 'src/*pp'
|
|
- 'src/osx/*pp'
|
|
pull_request:
|
|
branches: main
|
|
paths:
|
|
- '.github/workflows/cmake-macos.yml'
|
|
- 'CMakeLists.txt'
|
|
- 'include/**'
|
|
- 'src/*pp'
|
|
- 'src/osx/*pp'
|
|
|
|
jobs:
|
|
cmake_build_on_macos:
|
|
runs-on: macos-latest
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install build tools
|
|
run: |
|
|
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
|
|
brew update --quiet
|
|
brew install --force --overwrite cmake llvm@17 ninja lowdown
|
|
|
|
- name: Configure
|
|
run: |
|
|
export LLVM_PREFIX="$(brew --prefix llvm)"
|
|
export CXX="$LLVM_PREFIX/bin/clang++"
|
|
export CPPFLAGS="-I$LLVM_PREFIX/include"
|
|
export LDFLAGS="-L$LLVM_PREFIX/lib -L$LLVM_PREFIX/lib/c++ -Wl,-rpath,$LLVM_PREFIX/lib/c++ -fuse-ld=$LLVM_PREFIX/bin/ld64.lld"
|
|
cmake -B build -G Ninja
|
|
|
|
- name: Compile
|
|
run: cmake --build build --verbose
|