diff options
author | Shriraj Hegde <shriraj.hegde@gmail.com> | 2021-10-09 21:17:11 +0530 |
---|---|---|
committer | Shriraj Hegde <shriraj.hegde@gmail.com> | 2021-10-09 21:17:11 +0530 |
commit | a28e17556e74bb618fc2b6eb74f250b139406cdd (patch) | |
tree | 4a3248a659ab7564ef35b8107e7bbc0882800034 | |
parent | aee9179c0a98bce54b55c8bb8ebdc1ac99bad69e (diff) |
Add workflow for MacOS
-rw-r--r-- | .github/workflows/continuous-build-linux.yml (renamed from .github/workflows/continuous-build.yml) | 0 | ||||
-rw-r--r-- | .github/workflows/continuous-build-macos.yml | 39 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/continuous-build.yml b/.github/workflows/continuous-build-linux.yml index 33d545c..33d545c 100644 --- a/.github/workflows/continuous-build.yml +++ b/.github/workflows/continuous-build-linux.yml diff --git a/.github/workflows/continuous-build-macos.yml b/.github/workflows/continuous-build-macos.yml new file mode 100644 index 0000000..3575b0d --- /dev/null +++ b/.github/workflows/continuous-build-macos.yml @@ -0,0 +1,39 @@ +name: Continuous Build MacOS + +on: + push: + branches: + - OSX + tags-ignore: + - '*.*' + paths: + - 'src/**' + - '!src/linux/**' + - '!src/freebsd/**' + - 'include/**' + - 'Makefile' + - '.github/workflows/*' + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Install build tools + run: | + git checkout OSX + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + brew install gcc + - name: Compile + run: | + make CXX=g++-11 ARCH=x86_64 STATIC=true + GIT_HASH=$(git rev-parse --short "$GITHUB_SHA") + mv bin/btop bin/btop-x86_64-$GIT_HASH + make distclean + + - uses: actions/upload-artifact@v2 + with: + name: btop-x86_64 + path: 'bin/x86_64*' |