Initial macOS patcher #2
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: Patcher (macOS) | |
| on: | |
| push: | |
| branches: [ "v*", "master" ] | |
| paths: [ "patcher-darwin/**/*" ] | |
| pull_request: | |
| branches: [ "v*", "master" ] | |
| paths: [ "patcher-darwin/**/*" ] | |
| jobs: | |
| build: | |
| name: Build macOS Patcher | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6.0.2 | |
| - name: Configure CMake | |
| run: cmake -S patcher-darwin -B patcher-darwin/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
| - name: Build | |
| run: cmake --build patcher-darwin/build --config Release | |
| - name: Upload patcher-darwin | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: patcher-darwin | |
| path: patcher-darwin/build/PeacockPatcher | |
| clang-tidy: | |
| name: clang-tidy | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6.0.2 | |
| - name: Install LLVM | |
| run: brew install llvm | |
| - name: Configure CMake | |
| run: cmake -S patcher-darwin -B patcher-darwin/build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
| - name: Run clang-tidy | |
| run: | | |
| find patcher-darwin/src -name '*.cpp' -o -name '*.h' | \ | |
| xargs "$(brew --prefix llvm)/bin/clang-tidy" -p patcher-darwin/build |