File tree Expand file tree Collapse file tree 3 files changed +91
-6
lines changed
Expand file tree Collapse file tree 3 files changed +91
-6
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ pull_request :
5+ branches : [ master ]
6+ paths-ignore :
7+ - ' **/*.md'
8+ - ' **/*.gitignore'
9+ - ' **/Doxyfile'
10+
11+ jobs :
12+ Build :
13+ strategy :
14+ matrix :
15+ machine :
16+ - os : ubuntu-latest
17+ action : gmake2
18+ toolset : gcc
19+ - os : ubuntu-latest
20+ action : gmake2
21+ toolset : clang
22+ - os : windows-latest
23+ action : vs2019
24+ toolset : msc
25+ runs-on : ${{ matrix.machine.os }}
26+ permissions :
27+ actions : read
28+ contents : read
29+ security-events : write
30+ steps :
31+ - name : Checkout
32+ uses : actions/checkout@v3
33+ - name : Setup premake
34+ 35+ with :
36+ version : " 5.0.0-beta1"
37+ - name : Install GCC
38+ if : matrix.machine.os == 'ubuntu-latest' && matrix.machine.toolset == 'gcc'
39+ run : sudo apt-get update && sudo apt-get install -y gcc g++
40+ - name : Install Clang & LLVM
41+ if : matrix.machine.os == 'ubuntu-latest' && matrix.machine.toolset == 'clang'
42+ run : sudo apt-get update && sudo apt-get install -y clang llvm lld
43+ - name : Install msbuild to PATH
44+ if : matrix.machine.os == 'windows-latest' && matrix.machine.toolset == 'msc'
45+ 46+ - name : Run premake
47+ run : premake5 ${{ matrix.machine.action }} --toolset=${{ matrix.machine.toolset }} --dialect=C++17
48+ - name : Build
49+ run : premake5 build --config=debug --architecture=x64
50+ - name : Run test
51+ run : premake5 test --config=debug --architecture=x64
Original file line number Diff line number Diff line change @@ -3,12 +3,6 @@ name: Test
33on :
44 push :
55 branches : [ master ]
6- pull_request :
7- branches : [ master ]
8- paths-ignore :
9- - ' **/*.md'
10- - ' **/*.gitignore'
11- - ' **/Doxyfile'
126
137jobs :
148 Build :
Original file line number Diff line number Diff line change @@ -88,9 +88,49 @@ project "Test"
8888 conformancemode " on"
8989
9090 flags { " MultiProcessorCompile" }
91+
92+ -- buildoptions {
93+ -- "/w14242",
94+ -- "/w14254",
95+ -- "/w14263",
96+ -- "/w14265",
97+ -- "/w14287",
98+ -- "/w14289",
99+ -- "/w14296",
100+ -- "/w14311",
101+ -- "/w14545",
102+ -- "/w14546",
103+ -- "/w14547",
104+ -- "/w14549",
105+ -- "/w14555",
106+ -- "/w14619",
107+ -- "/w14640",
108+ -- "/w14826",
109+ -- "/w14905",
110+ -- "/w14906",
111+ -- "/w14928"
112+ -- }
91113
92114 filter " system:linux"
93115 systemversion " latest"
116+
117+ -- buildoptions {
118+ -- "-pedantic",
119+ -- "-Wall",
120+ -- "-Wextra",
121+ -- "-Wshadow",
122+ -- "-Wnon-virtual-dtor",
123+ -- "-Wold-style-cast",
124+ -- "-Wcast-align",
125+ -- "-Wunused",
126+ -- "-Woverloaded-virtual",
127+ -- "-Wpedantic",
128+ -- "-Wconversion",
129+ -- "-Wsign-conversion",
130+ -- "-Wdouble-promotion",
131+ -- "-Wformat=2",
132+ -- "-Wimplicit-fallthrough"
133+ -- }
94134
95135 -- Architecture
96136 filter " platforms:x86"
You can’t perform that action at this time.
0 commit comments