Improve macOS GPU monitoring and telemetry #196
Workflow file for this run
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: Compile | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, ubuntu-24.04, ubuntu-22.04] | |
| env: | |
| BUILD_DIR: build | |
| DEBIAN_FRONTEND: noninteractive | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: sudo apt-get install -y libncurses5-dev libncursesw5-dev libdrm-dev libsystemd-dev | |
| - name: Configure CMake | |
| run: cmake -S . -B $BUILD_DIR | |
| - name: Build | |
| run: cmake --build $BUILD_DIR | |
| - name: Install | |
| run: DESTDIR="$PWD/build/install" cmake --build $BUILD_DIR --target install | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nvtop ${{ matrix.os }} | |
| path: ${{ env.BUILD_DIR }}/install | |
| build-macos: | |
| runs-on: macos-latest | |
| env: | |
| BUILD_DIR: build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: brew install googletest | |
| - name: Configure CMake | |
| run: cmake -S . -B $BUILD_DIR -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DCMAKE_PREFIX_PATH="$(brew --prefix googletest)" | |
| - name: Build | |
| run: cmake --build $BUILD_DIR --parallel | |
| - name: Test | |
| run: ctest --test-dir $BUILD_DIR --output-on-failure --no-tests=error |