Skip to content

Commit 3f31b24

Browse files
committed
Build workflow
1 parent 9fbeb19 commit 3f31b24

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Patcher (macOS)
2+
3+
on:
4+
push:
5+
branches: [ "v*", "master" ]
6+
paths: [ "patcher-darwin/**/*" ]
7+
pull_request:
8+
branches: [ "v*", "master" ]
9+
paths: [ "patcher-darwin/**/*" ]
10+
11+
jobs:
12+
build:
13+
name: Build macOS Patcher
14+
runs-on: macos-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v6.0.2
19+
20+
- name: Configure CMake
21+
run: cmake -S patcher-darwin -B patcher-darwin/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
22+
23+
- name: Build
24+
run: cmake --build patcher-darwin/build --config Release
25+
26+
- name: Upload patcher-darwin
27+
uses: actions/upload-artifact@v7
28+
with:
29+
name: patcher-darwin
30+
path: patcher-darwin/build/PeacockPatcher
31+
32+
clang-tidy:
33+
name: clang-tidy
34+
runs-on: macos-latest
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v6.0.2
39+
40+
- name: Configure CMake
41+
run: cmake -S patcher-darwin -B patcher-darwin/build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
42+
43+
- name: Run clang-tidy
44+
run: |
45+
find patcher-darwin/src -name '*.cpp' -o -name '*.h' | \
46+
xargs clang-tidy -p patcher-darwin/build

0 commit comments

Comments
 (0)