Merge pull request #1661 from mgajda/feat/amd-igpu-sysfs-v2 #1871
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| 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/*' |