Merge pull request #80 from ShrirajHegde/OSX

Add github workflow for MacOS
This commit is contained in:
aristocratos 2021-10-12 22:19:30 +02:00 committed by GitHub
commit 683354cd2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View 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/*'