File tree Expand file tree Collapse file tree 5 files changed +151
-44
lines changed
actions/install-dependencies Expand file tree Collapse file tree 5 files changed +151
-44
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Install Dependencies'
2
+ description : ' Install dependencies for the environment'
3
+
4
+ runs :
5
+ using : ' composite'
6
+
7
+ steps :
8
+ - name : Install Custom VCPKG
9
+ uses : RealChuan/install-vcpkg@main
10
+ with :
11
+ repo : ' https://github.com/RealChuan/vcpkg.git'
12
+ branch : ' dev'
13
+
14
+ - name : Update vcpkg manifest baseline
15
+ shell : bash
16
+ run : |
17
+ vcpkg x-update-baseline
18
+
19
+ - name : Cache vcpkg
20
+ uses : actions/cache@v4
21
+ with :
22
+ path : ${{ github.workspace }}/build/vcpkg_installed
23
+ key : ${{ runner.os }}-vcpkg-installed-${{ github.sha }}
24
+ restore-keys : |
25
+ ${{ runner.os }}-vcpkg-installed-
26
+ ${{ runner.os }}-
27
+
28
+ - name : Install dependencies on windows
29
+ if : runner.os == 'Windows'
30
+ shell : bash
31
+ run : |
32
+ choco install ninja
33
+ ninja --version
34
+ cmake --version
35
+
36
+ - name : Install dependencies on macos
37
+ if : runner.os == 'macOS'
38
+ shell : bash
39
+ run : |
40
+ brew install nasm python-setuptools
41
+ ninja --version
42
+ cmake --version
43
+ clang --version
44
+
45
+ - name : Install dependencies on linux
46
+ if : runner.os == 'Linux'
47
+ shell : bash
48
+ run : |
49
+ sudo apt-get update
50
+ sudo apt-get install ninja-build clang
51
+ ninja --version
52
+ cmake --version
53
+ gcc --version
54
+
Original file line number Diff line number Diff line change @@ -34,53 +34,11 @@ jobs:
34
34
- " Ninja"
35
35
36
36
steps :
37
- - name : Install dependencies on windows
38
- if : startsWith(matrix.os, 'windows')
39
- run : |
40
- choco install ninja
41
- ninja --version
42
- cmake --version
43
- - name : Install dependencies on macos
44
- if : startsWith(matrix.os, 'macos')
45
- shell : bash
46
- run : |
47
- brew install ninja python-setuptools
48
- ninja --version
49
- cmake --version
50
- clang --version
51
- - name : Install dependencies on ubuntu
52
- if : startsWith(matrix.os, 'ubuntu')
53
- run : |
54
- sudo apt-get update
55
- sudo apt-get install ninja-build clang
56
- ninja --version
57
- cmake --version
58
- gcc --version
59
-
60
37
- uses : actions/checkout@v4
61
38
with :
62
39
fetch-depth : 1
63
40
64
- - name : Install custom vcpkg
65
- uses : RealChuan/install-vcpkg@main
66
- with :
67
- repo : ' https://github.com/RealChuan/vcpkg.git'
68
- branch : ' dev'
69
-
70
- - name : Update vcpkg manifest baseline
71
- shell : bash
72
- run : |
73
- vcpkg x-update-baseline
74
-
75
- - name : Cache vcpkg
76
- uses : actions/cache@v4
77
- with :
78
- path : ${{ github.workspace }}/build/vcpkg_installed
79
- key : ${{ matrix.os }}-vcpkg-installed-${{ runner.os }}-${{ github.sha }}
80
- restore-keys : |
81
- ${{ matrix.os }}-vcpkg-installed-${{ runner.os }}-
82
- ${{ matrix.os }}-vcpkg-installed-
83
- ${{ matrix.os }}-
41
+ - uses : ./.github/actions/install-dependencies
84
42
85
43
- name : Configure and build windows
86
44
if : startsWith(matrix.os, 'windows')
Original file line number Diff line number Diff line change
1
+ name : CodeQL
2
+
3
+ on :
4
+ push :
5
+ paths-ignore :
6
+ - ' .clang*'
7
+ - ' .gitignore'
8
+ - ' LICENSE'
9
+ - ' README*'
10
+ pull_request :
11
+ paths-ignore :
12
+ - ' .clang*'
13
+ - ' .gitignore'
14
+ - ' LICENSE'
15
+ - ' README*'
16
+
17
+ schedule :
18
+ - cron : ' 0 0 1 * *'
19
+ workflow_dispatch :
20
+
21
+
22
+ jobs :
23
+ CodeQL :
24
+ runs-on : ubuntu-latest
25
+
26
+ steps :
27
+ - uses : actions/checkout@v4
28
+ with :
29
+ fetch-depth : 1
30
+
31
+ - uses : ./.github/actions/install-dependencies
32
+
33
+ - name : Initialize CodeQL
34
+ uses : github/codeql-action/init@v3
35
+ with :
36
+ languages : cpp
37
+
38
+ - name : Autobuild
39
+ uses : github/codeql-action/autobuild@v3
40
+
41
+ - name : Perform CodeQL Analysis
42
+ uses : github/codeql-action/analyze@v3
43
+
Original file line number Diff line number Diff line change
1
+ name : CPP Linter
2
+
3
+ on :
4
+ push :
5
+ paths-ignore :
6
+ - ' .clang*'
7
+ - ' .gitignore'
8
+ - ' LICENSE'
9
+ - ' README*'
10
+ pull_request :
11
+ paths-ignore :
12
+ - ' .clang*'
13
+ - ' .gitignore'
14
+ - ' LICENSE'
15
+ - ' README*'
16
+
17
+ jobs :
18
+ cpp-linter :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 1
24
+
25
+ - uses : ./.github/actions/install-dependencies
26
+
27
+ - name : Configure and build on ubuntu
28
+ shell : bash
29
+ run : |
30
+ cmake \
31
+ -S . \
32
+ -B ./build \
33
+ -DCMAKE_BUILD_TYPE=Release \
34
+ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
35
+ -G "Ninja" \
36
+ || (cat ./build/vcpkg_installed/vcpkg/issue_body.md && exit 1)
37
+ cmake --build ./build --config Release
38
+
39
+ - uses : cpp-linter/cpp-linter-action@main
40
+ id : linter
41
+ continue-on-error : true
42
+ env :
43
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+ with :
45
+ style : file
46
+ files-changed-only : false
47
+ thread-comments : false
48
+ step-summary : true
49
+
50
+ - name : Fail fast?!
51
+ if : steps.linter.outputs.clang-tidy-checks-failed > 0
52
+ run : exit 1
Original file line number Diff line number Diff line change 27
27
]
28
28
}
29
29
],
30
- "builtin-baseline" : " 3de032f834a9b28a455e35600b03e9d365ce3b85 "
30
+ "builtin-baseline" : " d5cb5b9392b89fe9ad25786022415999202277d6 "
31
31
}
You can’t perform that action at this time.
0 commit comments