-
-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into lldb-term-size
- Loading branch information
Showing
41 changed files
with
4,319 additions
and
3,062 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: FreeBSD CMake | ||
|
||
on: | ||
push: | ||
branches: main | ||
tags-ignore: '*.*' | ||
paths: | ||
- '.github/workflows/cmake-freebsd.yml' | ||
- 'CMakeLists.txt' | ||
- 'include/**' | ||
- 'src/*pp' | ||
- 'src/freebsd/*pp' | ||
pull_request: | ||
branches: main | ||
paths: | ||
- '.github/workflows/cmake-freebsd.yml' | ||
- 'CMakeLists.txt' | ||
- 'include/**' | ||
- 'src/*pp' | ||
- 'src/freebsd/*pp' | ||
|
||
jobs: | ||
cmake_build_on_freebsd: | ||
runs-on: ubuntu-22.04 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Compile | ||
uses: vmactions/freebsd-vm@v1 | ||
with: | ||
release: '14.0' | ||
usesh: true | ||
prepare: pkg install -y cmake ninja | ||
run: | | ||
CXX=clang++ cmake -B build -G Ninja -DBTOP_STATIC=ON | ||
cmake --build build --verbose | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
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: | ||
cmake_build_on_linux: | ||
runs-on: ubuntu-latest | ||
container: alpine:edge | ||
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: apk add --no-cache --update clang cmake lld ninja | ||
|
||
- name: Configure | ||
run: CXX=clang++ LDFLAGS=-fuse-ld=lld cmake -B build -G Ninja -DBTOP_STATIC=ON | ||
|
||
- name: Compile | ||
run: cmake --build build --verbose | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
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 | ||
- 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 | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Continuous Build OpenBSD | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
tags-ignore: | ||
- '*.*' | ||
paths: | ||
- 'src/**' | ||
- '!src/linux/**' | ||
- '!src/osx/**' | ||
- '!src/freebsd/**' | ||
- 'include/**' | ||
- 'Makefile' | ||
- '.github/workflows/continuous-build-openbsd.yml' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'src/**' | ||
- '!src/linux/**' | ||
- '!src/osx/**' | ||
- '!src/freebsd/**' | ||
- 'include/**' | ||
- 'Makefile' | ||
- '.github/workflows/continuous-build-openbsd.yml' | ||
|
||
jobs: | ||
build-openbsd: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Compile | ||
uses: vmactions/openbsd-vm@v1 | ||
with: | ||
release: '7.4' | ||
usesh: true | ||
prepare: | | ||
pkg_add gmake gcc%11 g++%11 coreutils git | ||
git config --global --add safe.directory /home/runner/work/btop/btop | ||
run: | | ||
gmake CXX=eg++ STATIC=true STRIP=true | ||
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA") | ||
mv bin/btop bin/btop-GCC11-"$GIT_HASH" | ||
ls -alh bin | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: btop-x86_64-openbsd-7.4 | ||
path: 'bin/*' | ||
if-no-files-found: error | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: 🧪 Test snap can be built on x86_64 | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
tags-ignore: | ||
- '*.*' | ||
paths: | ||
- 'src/**' | ||
- '!src/osx/**' | ||
- '!src/freebsd/**' | ||
- 'include/**' | ||
- 'Makefile' | ||
- '.github/workflows/test-snap-can-build.yml' | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'src/**' | ||
- '!src/osx/**' | ||
- '!src/freebsd/**' | ||
- 'include/**' | ||
- 'Makefile' | ||
- '.github/workflows/test-snap-can-build.yml' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: snapcore/action-build@v1 | ||
id: build | ||
|
||
- uses: diddlesnaps/snapcraft-review-action@v1 | ||
with: | ||
snap: ${{ steps.build.outputs.snap }} | ||
isClassic: 'false' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,9 @@ bin | |
btop | ||
.*/ | ||
|
||
# Optional libraries | ||
lib/rocm_smi_lib | ||
|
||
# Don't ignore .github directory | ||
!.github/ | ||
|
||
|
Oops, something went wrong.