-
Notifications
You must be signed in to change notification settings - Fork 65
74 lines (69 loc) · 2.16 KB
/
main.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: build_and_test
on:
push:
branches:
- main
pull_request:
jobs:
windows:
runs-on: windows-2019
timeout-minutes: 5
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Windows VS2019
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && msbuild.exe projects/vs2019/ClangBuildAnalyzer.sln /p:Configuration=Debug /p:CL_MPCount=2
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && msbuild.exe projects/vs2019/ClangBuildAnalyzer.sln /p:Configuration=Release /p:CL_MPCount=2
build\ClangBuildAnalyzer.exe --test tests
shell: cmd
- uses: actions/upload-artifact@v1
with:
name: ClangBuildAnalyzer-win.exe
path: build/ClangBuildAnalyzer.exe
mac:
runs-on: macOS-latest
timeout-minutes: 5
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: macOS Xcode 14
run: |
xcodebuild -project projects/xcode/ClangBuildAnalyzer.xcodeproj -configuration Debug build
xcodebuild -project projects/xcode/ClangBuildAnalyzer.xcodeproj -configuration Release build
projects/xcode/build/Release/ClangBuildAnalyzer --test tests
mkdir buildCmake
cd buildCmake
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 2
cd ..
- uses: actions/upload-artifact@v1
with:
name: ClangBuildAnalyzer-mac
path: projects/xcode/build/Release/ClangBuildAnalyzer
linux:
runs-on: ubuntu-22.04
timeout-minutes: 5
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Ubuntu22 Gcc11
env:
CC: gcc-11
CXX: g++-11
run: |
mkdir buildCmake
cd buildCmake
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 2
cd ..
buildCmake/ClangBuildAnalyzer --test tests
make -f projects/make/Makefile -j 2
build/ClangBuildAnalyzer --test tests
- uses: actions/upload-artifact@v1
with:
name: ClangBuildAnalyzer-linux
path: build/ClangBuildAnalyzer