Add CMake workflow for all platforms, fix RPATH on FreeBSD, remove unused compile flag from OSX and format #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux CMake | |
on: | |
push: | |
branches: main | |
tags-ignore: '*.*' | |
paths: | |
- '.github/workflows/cmake-linux.yml' | |
- 'CMakeLists.txt' | |
- 'include/**' | |
- 'src/*pp' | |
- 'src/linux/*pp' | |
pull_request: | |
branches: main | |
paths: | |
- '.github/workflows/cmake-linux.yml' | |
- 'CMakeLists.txt' | |
- 'include/**' | |
- 'src/*pp' | |
- 'src/linux/*pp' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: alpine:edge | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install build tools | |
run: apk add --no-cache --update clang cmake ninja | |
- name: Configure | |
run: CXX=clang++ cmake -B build -G Ninja -DBTOP_STATIC=ON | |
- name: Compile | |
run: cmake --build build --verbose | |