mirror of
https://github.com/aristocratos/btop.git
synced 2024-10-06 13:06:18 +13: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
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
name: Continuous Build FreeBSD
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags-ignore:
|
|
- '*.*'
|
|
paths:
|
|
- 'src/**'
|
|
- '!src/linux/**'
|
|
- '!src/osx/**'
|
|
- '!src/openbsd/**'
|
|
- 'include/**'
|
|
- 'Makefile'
|
|
- '.github/workflows/continuous-build-freebsd.yml'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'src/**'
|
|
- '!src/linux/**'
|
|
- '!src/osx/**'
|
|
- '!src/openbsd/**'
|
|
- 'include/**'
|
|
- 'Makefile'
|
|
- '.github/workflows/continuous-build-freebsd.yml'
|
|
|
|
jobs:
|
|
build-freebsd:
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 20
|
|
strategy:
|
|
matrix:
|
|
compiler: ["clang++", "g++"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Compile
|
|
uses: vmactions/freebsd-vm@v1
|
|
with:
|
|
release: '14.0'
|
|
usesh: true
|
|
prepare: |
|
|
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
|
|
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
|
|
COMPILER=$(echo ${{ matrix.compiler }} | sed 's/clang++/llvm/' | sed 's/g++/gcc/')
|
|
mv bin/btop bin/btop-"$COMPILER"-"$GIT_HASH"
|
|
ls -alh bin
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: btop-x86_64-freebsd-14
|
|
path: 'bin/*'
|
|
if-no-files-found: error
|