-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (37 loc) · 968 Bytes
/
check_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: "Check Build"
on:
pull_request:
paths-ignore:
- src/art_src
- src/tests
- src/xml
- src/import/rapidjson
- codegen_test
- tests
- docs
- import_tests
- .github
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
clangFormat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.18
with:
source: './src'
exclude: file
extensions: 'h,cpp'
clangFormatVersion: 18
style: file
check_build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- run: mkdir ${{github.workspace}}/build
- name: Configure CMake
run: cmake -G "Visual Studio 17 2022" -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target check_build