mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-15 18:03:06 +12:00
Merge pull request #80 from ShrirajHegde/OSX
Add github workflow for MacOS
This commit is contained in:
commit
683354cd2e
37
.github/workflows/continuous-build-macos.yml
vendored
Normal file
37
.github/workflows/continuous-build-macos.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Continuous Build MacOS
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- OSX
|
||||
tags-ignore:
|
||||
- '*.*'
|
||||
paths:
|
||||
- 'src/**'
|
||||
- '!src/linux/**'
|
||||
- '!src/freebsd/**'
|
||||
- 'include/**'
|
||||
- 'Makefile'
|
||||
- '.github/workflows/*'
|
||||
|
||||
jobs:
|
||||
build-osx:
|
||||
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install build tools
|
||||
run: |
|
||||
git checkout OSX
|
||||
- name: Compile
|
||||
run: |
|
||||
make CXX=g++-11 ARCH=x86_64
|
||||
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
|
||||
mv bin/btop bin/btop-x86_64-$GIT_HASH
|
||||
ls -alh bin
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: btop-x86_64-macos
|
||||
path: 'bin/*'
|
Loading…
Reference in a new issue