summaryrefslogtreecommitdiffstats
path: root/.github/workflows/continuous-build-macos.yml
blob: 2cb5e4ad2e01abc4ced9d51aa7ac1bc34ed99c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Continuous Build MacOS

on:
  push:
    branches:
      - main
    tags-ignore:
      - '*.*'
    paths:
      - 'src/**'
      - '!src/linux/**'
      - '!src/freebsd/**'
      - 'include/**'
      - 'Makefile'
      - '.github/workflows/*'

jobs:
  build-osx:

    runs-on: macos-11

    steps:
      - uses: actions/checkout@v2
      - name: Compile
        run: |
          make CXX=g++-11 ARCH=x86_64 STATIC=true STRIP=true
          GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
          mv bin/btop bin/btop-x86_64-BigSur-$GIT_HASH
          ls -alh bin

      - uses: actions/upload-artifact@v2
        with:
          name: btop-x86_64-macos-BigSur
          path: 'bin/*'