mirror of
https://github.com/aristocratos/btop.git
synced 2024-11-10 21:36:45 +01:00
70 lines
1.6 KiB
YAML
70 lines
1.6 KiB
YAML
name: Continuous Build MacOS
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags-ignore:
|
|
- '*.*'
|
|
paths:
|
|
- 'src/**'
|
|
- '!src/linux/**'
|
|
- '!src/freebsd/**'
|
|
- 'include/**'
|
|
- 'Makefile'
|
|
- '.github/workflows/continuous-build-macos.yml'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'src/**'
|
|
- '!src/linux/**'
|
|
- '!src/freebsd/**'
|
|
- 'include/**'
|
|
- 'Makefile'
|
|
- '.github/workflows/continuous-build-macos.yml'
|
|
|
|
jobs:
|
|
build-macos11:
|
|
runs-on: macos-11
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- 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@v3
|
|
with:
|
|
name: btop-x86_64-macos11-BigSur
|
|
path: 'bin/*'
|
|
|
|
build-macos12:
|
|
runs-on: macos-12
|
|
steps:
|
|
- uses: maxim-lobanov/setup-xcode@v1
|
|
with:
|
|
xcode-version: latest-stable
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Compile
|
|
run: |
|
|
make CXX=g++-12 ARCH=x86_64 STATIC=true STRIP=true
|
|
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
|
|
mv bin/btop bin/btop-x86_64-Monterey-$GIT_HASH
|
|
ls -alh bin
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: btop-x86_64-macos12-Monterey
|
|
path: 'bin/*'
|