Skip to content

Commit

Permalink
Add 'lowdown' to build dependencies so GitHub actions actually runs it
Browse files Browse the repository at this point in the history
Building the man page is optional and happens automatically if command
'lowdown' is present on the system. Add it to the Snap definition and to
all GitHub CI files so man page conversion will be tested and fully used.
  • Loading branch information
ottok committed Mar 3, 2024
1 parent 55c94f5 commit 79a5bb9
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/cmake-freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
with:
release: '14.0'
usesh: true
prepare: pkg install -y cmake ninja
prepare: pkg install -y cmake ninja lowdown
run: |
CXX=clang++ cmake -B build -G Ninja -DBTOP_STATIC=ON
cmake --build build --verbose
3 changes: 1 addition & 2 deletions .github/workflows/cmake-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ jobs:
- uses: actions/checkout@v4

- 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
run: CXX=clang++ LDFLAGS=-fuse-ld=lld cmake -B build -G Ninja -DBTOP_STATIC=ON

- name: Compile
run: cmake --build build --verbose

3 changes: 1 addition & 2 deletions .github/workflows/cmake-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew update --quiet
brew install --force --overwrite cmake llvm@17 ninja
brew install --force --overwrite cmake llvm@17 ninja lowdown
- name: Configure
run: |
Expand All @@ -44,4 +44,3 @@ jobs:
- name: Compile
run: cmake --build build --verbose

3 changes: 1 addition & 2 deletions .github/workflows/continuous-build-freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
release: '14.0'
usesh: true
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
run: |
CXX=${{ matrix.compiler }} gmake STATIC=true STRIP=true
Expand All @@ -59,4 +59,3 @@ jobs:
name: btop-x86_64-freebsd-14
path: 'bin/*'
if-no-files-found: error

1 change: 0 additions & 1 deletion .github/workflows/continuous-build-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ jobs:

- name: Compile
run: make CXX=g++ GPU_SUPPORT=true

2 changes: 1 addition & 1 deletion .github/workflows/continuous-build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:

steps:
- name: Install build tools
run: apk add --no-cache coreutils git make tar zstd
run: apk add --no-cache coreutils git make tar zstd lowdown

- name: Fix - Unsafe repository stop
run: git config --global --add safe.directory /__w/btop/btop
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/continuous-build-openbsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
release: '7.4'
usesh: true
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
run: |
gmake CXX=eg++ STATIC=true STRIP=true
Expand All @@ -55,4 +55,3 @@ jobs:
name: btop-x86_64-openbsd-7.4
path: 'bin/*'
if-no-files-found: error

3 changes: 2 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ parts:
- build-essential
- gcc-11
- g++-11

- lowdown

override-pull: |
snapcraftctl pull
snapcraftctl set-version "$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)"

0 comments on commit 79a5bb9

Please sign in to comment.