Skip to content

[AI generated] options/proc: group controls and preserve tree state #1968

[AI generated] options/proc: group controls and preserve tree state

[AI generated] options/proc: group controls and preserve tree state #1968

name: Continuous Build MacOS
permissions: {}
on:
workflow_dispatch:
push:
branches:
- main
tags-ignore:
- '*.*'
paths:
- 'src/**'
- '!src/linux/**'
- '!src/freebsd/**'
- '!src/netbsd/**'
- '!src/openbsd/**'
- 'include/**'
- 'Makefile'
- '.github/workflows/continuous-build-macos.yml'
pull_request:
branches:
- main
paths:
- 'src/**'
- '!src/linux/**'
- '!src/freebsd/**'
- '!src/netbsd/**'
- '!src/openbsd/**'
- 'include/**'
- 'Makefile'
- '.github/workflows/continuous-build-macos.yml'
jobs:
build-macos:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.os.runner }}
cancel-in-progress: true
continue-on-error: true
strategy:
matrix:
os:
- runner: macos-14
version: Sonoma
- runner: macos-15
version: Sequoia
runs-on: ${{ matrix.os.runner }}
steps:
- uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0
with:
xcode-version: latest-stable
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install build tools
run: |
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew update --quiet
brew install --force --overwrite gcc@15 lowdown
- name: Compile
env:
RUNNER: "${{ matrix.os.runner }}"
VERSION: "${{ matrix.os.version }}"
run: |
make CXX=$(brew --prefix)/bin/g++-15
GIT_HASH=$(git rev-parse --short "$GITHUB_SHA")
mv bin/btop bin/btop-arm64-${RUNNER}-${VERSION}-$GIT_HASH
ls -alh bin
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: btop-arm64-${{ matrix.os.runner }}-${{ matrix.os.version }}
path: 'bin/*'