mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-18 10:25:46 +12:00
Add 'lowdown' to build dependencies so GitHub actions actually runs it
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
This commit is contained in:
parent
ed68589af1
commit
d8c054d92f
3
.github/workflows/cmake-freebsd.yml
vendored
3
.github/workflows/cmake-freebsd.yml
vendored
|
@ -33,8 +33,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
release: '14.0'
|
release: '14.0'
|
||||||
usesh: true
|
usesh: true
|
||||||
prepare: pkg install -y cmake ninja
|
prepare: pkg install -y cmake ninja lowdown
|
||||||
run: |
|
run: |
|
||||||
CXX=clang++ cmake -B build -G Ninja -DBTOP_STATIC=ON
|
CXX=clang++ cmake -B build -G Ninja -DBTOP_STATIC=ON
|
||||||
cmake --build build --verbose
|
cmake --build build --verbose
|
||||||
|
|
||||||
|
|
3
.github/workflows/cmake-linux.yml
vendored
3
.github/workflows/cmake-linux.yml
vendored
|
@ -30,11 +30,10 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install build tools
|
- name: Install build tools
|
||||||
run: apk add --no-cache --update clang cmake lld ninja
|
run: apk add --no-cache --update clang cmake lld ninja lowdown
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: CXX=clang++ LDFLAGS=-fuse-ld=lld cmake -B build -G Ninja -DBTOP_STATIC=ON
|
run: CXX=clang++ LDFLAGS=-fuse-ld=lld cmake -B build -G Ninja -DBTOP_STATIC=ON
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: cmake --build build --verbose
|
run: cmake --build build --verbose
|
||||||
|
|
||||||
|
|
3
.github/workflows/cmake-macos.yml
vendored
3
.github/workflows/cmake-macos.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
|
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
|
||||||
brew update --quiet
|
brew update --quiet
|
||||||
brew install --force --overwrite cmake llvm@17 ninja
|
brew install --force --overwrite cmake llvm@17 ninja lowdown
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
|
@ -44,4 +44,3 @@ jobs:
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: cmake --build build --verbose
|
run: cmake --build build --verbose
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ jobs:
|
||||||
release: '14.0'
|
release: '14.0'
|
||||||
usesh: true
|
usesh: true
|
||||||
prepare: |
|
prepare: |
|
||||||
pkg install -y gmake gcc coreutils git
|
pkg install -y gmake gcc coreutils git lowdown
|
||||||
git config --global --add safe.directory /home/runner/work/btop/btop
|
git config --global --add safe.directory /home/runner/work/btop/btop
|
||||||
run: |
|
run: |
|
||||||
CXX=${{ matrix.compiler }} gmake STATIC=true STRIP=true
|
CXX=${{ matrix.compiler }} gmake STATIC=true STRIP=true
|
||||||
|
@ -59,4 +59,3 @@ jobs:
|
||||||
name: btop-x86_64-freebsd-14
|
name: btop-x86_64-freebsd-14
|
||||||
path: 'bin/*'
|
path: 'bin/*'
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ jobs:
|
||||||
release: '7.4'
|
release: '7.4'
|
||||||
usesh: true
|
usesh: true
|
||||||
prepare: |
|
prepare: |
|
||||||
pkg_add gmake gcc%11 g++%11 coreutils git
|
pkg_add gmake gcc%11 g++%11 coreutils git lowdown
|
||||||
git config --global --add safe.directory /home/runner/work/btop/btop
|
git config --global --add safe.directory /home/runner/work/btop/btop
|
||||||
run: |
|
run: |
|
||||||
gmake CXX=eg++ STATIC=true STRIP=true
|
gmake CXX=eg++ STATIC=true STRIP=true
|
||||||
|
@ -55,4 +55,3 @@ jobs:
|
||||||
name: btop-x86_64-openbsd-7.4
|
name: btop-x86_64-openbsd-7.4
|
||||||
path: 'bin/*'
|
path: 'bin/*'
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,8 @@ parts:
|
||||||
- PREFIX=/usr/local
|
- PREFIX=/usr/local
|
||||||
- STATIC=true
|
- STATIC=true
|
||||||
- ADDFLAGS="-D SNAPPED"
|
- ADDFLAGS="-D SNAPPED"
|
||||||
|
# Add 'lowdown' to build dependencies as soon at Snap builder updates from
|
||||||
|
# Ubuntu 20.04 "Focal" to something newer that has Lowdown included
|
||||||
build-packages:
|
build-packages:
|
||||||
- coreutils
|
- coreutils
|
||||||
- sed
|
- sed
|
||||||
|
|
Loading…
Reference in a new issue