2021-10-10 04:47:11 +13:00
|
|
|
name: Continuous Build MacOS
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- OSX
|
|
|
|
tags-ignore:
|
|
|
|
- '*.*'
|
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- '!src/linux/**'
|
|
|
|
- '!src/freebsd/**'
|
|
|
|
- 'include/**'
|
|
|
|
- 'Makefile'
|
|
|
|
- '.github/workflows/*'
|
|
|
|
|
|
|
|
jobs:
|
2021-10-10 05:06:13 +13:00
|
|
|
build-osx:
|
2021-10-10 04:47:11 +13:00
|
|
|
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install build tools
|
|
|
|
run: |
|
|
|
|
git checkout OSX
|
|
|
|
- name: Compile
|
|
|
|
run: |
|
2021-10-10 04:56:57 +13:00
|
|
|
make CXX=g++-11 ARCH=x86_64
|
2021-10-10 04:47:11 +13:00
|
|
|
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
|
|
|
|
mv bin/btop bin/btop-x86_64-$GIT_HASH
|
2021-10-10 05:10:11 +13:00
|
|
|
ls -alh bin
|
2021-10-10 04:47:11 +13:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: btop-x86_64
|
2021-10-10 05:10:11 +13:00
|
|
|
path: 'bin/*'
|