Skip to content

Commit fadc2b8

Browse files
committed
initial commit
0 parents  commit fadc2b8

38 files changed

+8375
-0
lines changed

.github/workflows/build.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "*"
8+
- "*/*"
9+
- "**"
10+
paths:
11+
- "**.cpp"
12+
- "**.hpp"
13+
- "**.h"
14+
- "**.c"
15+
- ".github/workflows/build.yml"
16+
pull_request:
17+
branches:
18+
- "*"
19+
- "*/*"
20+
- "**"
21+
paths:
22+
- "**.cpp"
23+
- "**.hpp"
24+
- "**.h"
25+
- "**.c"
26+
- ".github/workflows/build.yml"
27+
28+
jobs:
29+
build-windows-release:
30+
runs-on: windows-2019
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
clean: true
35+
submodules: recursive
36+
fetch-depth: 0
37+
38+
- name: Generate build files
39+
run: |
40+
mkdir build
41+
cd build
42+
cmake -DCMAKE_BUILD_TYPE=Release .. -A Win32
43+
cmake --build . --config Release
44+
45+
- name: Create a folder for release
46+
shell: bash
47+
run: |
48+
mkdir dist
49+
cd dist
50+
mkdir components
51+
mkdir -p qawno/include
52+
cd ..
53+
mv ./build/src/Release/omp-logger.dll ./dist/components/omp-logger.dll
54+
mv ./omp-logger.inc ./dist/qawno/include/omp-logger.inc
55+
56+
- name: Upload artifacts
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: omp-logger-win
60+
path: dist/*
61+
62+
build-linux-release:
63+
runs-on: ubuntu-20.04
64+
steps:
65+
- uses: actions/checkout@v4
66+
with:
67+
clean: true
68+
submodules: recursive
69+
fetch-depth: 0
70+
71+
- name: Install gcc/g++-multilib
72+
run: |
73+
sudo dpkg --add-architecture i386
74+
sudo apt-get update
75+
sudo apt install gcc-9-multilib g++-9-multilib libstdc++-10-dev:i386
76+
77+
- name: Build
78+
run: |
79+
mkdir build
80+
cd build
81+
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32
82+
cmake --build . --parallel $(nproc)
83+
84+
- name: Create a folder for release
85+
shell: bash
86+
run: |
87+
mkdir dist
88+
cd dist
89+
mkdir components
90+
mkdir -p qawno/include
91+
cd ..
92+
mv ./build/src/omp-logger.so ./dist/components/omp-logger.so
93+
mv ./omp-logger.inc ./dist/qawno/include/omp-logger.inc
94+
95+
- name: Upload artifacts
96+
uses: actions/upload-artifact@v4
97+
with:
98+
name: omp-logger-linux
99+
path: dist/*

.gitignore

Lines changed: 293 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,293 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Dd]ebugPublic/
16+
[Rr]elease/
17+
build/
18+
19+
[Rr]eleases/
20+
x64/
21+
x86/
22+
bld/
23+
[Bb]in/
24+
[Oo]bj/
25+
[Ll]og/
26+
27+
# Visual Studio 2015 cache/options directory
28+
.vs/
29+
# Uncomment if you have tasks that create the project's static files in wwwroot
30+
#wwwroot/
31+
32+
# MSTest test Results
33+
[Tt]est[Rr]esult*/
34+
[Bb]uild[Ll]og.*
35+
36+
# NUNIT
37+
*.VisualState.xml
38+
TestResult.xml
39+
40+
# Build Results of an ATL Project
41+
[Dd]ebugPS/
42+
[Rr]eleasePS/
43+
dlldata.c
44+
45+
# DNX
46+
project.lock.json
47+
project.fragment.lock.json
48+
artifacts/
49+
50+
*_i.c
51+
*_p.c
52+
*_i.h
53+
*.ilk
54+
*.meta
55+
*.obj
56+
*.pch
57+
*.pdb
58+
*.pgc
59+
*.pgd
60+
*.rsp
61+
*.sbr
62+
*.tlb
63+
*.tli
64+
*.tlh
65+
*.tmp
66+
*.tmp_proj
67+
*.log
68+
*.vspscc
69+
*.vssscc
70+
.builds
71+
*.pidb
72+
*.svclog
73+
*.scc
74+
75+
# Chutzpah Test files
76+
_Chutzpah*
77+
78+
# Visual C++ cache files
79+
ipch/
80+
*.aps
81+
*.ncb
82+
*.opendb
83+
*.opensdf
84+
*.sdf
85+
*.cachefile
86+
*.VC.db
87+
*.VC.VC.opendb
88+
89+
# Visual Studio profiler
90+
*.psess
91+
*.vsp
92+
*.vspx
93+
*.sap
94+
95+
# TFS 2012 Local Workspace
96+
$tf/
97+
98+
# Guidance Automation Toolkit
99+
*.gpState
100+
101+
# ReSharper is a .NET coding add-in
102+
_ReSharper*/
103+
*.[Rr]e[Ss]harper
104+
*.DotSettings.user
105+
106+
# JustCode is a .NET coding add-in
107+
.JustCode
108+
109+
# TeamCity is a build add-in
110+
_TeamCity*
111+
112+
# DotCover is a Code Coverage Tool
113+
*.dotCover
114+
115+
# NCrunch
116+
_NCrunch_*
117+
.*crunch*.local.xml
118+
nCrunchTemp_*
119+
120+
# MightyMoose
121+
*.mm.*
122+
AutoTest.Net/
123+
124+
# Web workbench (sass)
125+
.sass-cache/
126+
127+
# Installshield output folder
128+
[Ee]xpress/
129+
130+
# DocProject is a documentation generator add-in
131+
DocProject/buildhelp/
132+
DocProject/Help/*.HxT
133+
DocProject/Help/*.HxC
134+
DocProject/Help/*.hhc
135+
DocProject/Help/*.hhk
136+
DocProject/Help/*.hhp
137+
DocProject/Help/Html2
138+
DocProject/Help/html
139+
140+
# Click-Once directory
141+
publish/
142+
143+
# Publish Web Output
144+
*.[Pp]ublish.xml
145+
*.azurePubxml
146+
# TODO: Comment the next line if you want to checkin your web deploy settings
147+
# but database connection strings (with potential passwords) will be unencrypted
148+
#*.pubxml
149+
*.publishproj
150+
151+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
152+
# checkin your Azure Web App publish settings, but sensitive information contained
153+
# in these scripts will be unencrypted
154+
PublishScripts/
155+
156+
# NuGet Packages
157+
*.nupkg
158+
# The packages folder can be ignored because of Package Restore
159+
**/packages/*
160+
# except build/, which is used as an MSBuild target.
161+
!**/packages/build/
162+
# Uncomment if necessary however generally it will be regenerated when needed
163+
#!**/packages/repositories.config
164+
# NuGet v3's project.json files produces more ignoreable files
165+
*.nuget.props
166+
*.nuget.targets
167+
168+
# Microsoft Azure Build Output
169+
csx/
170+
*.build.csdef
171+
172+
# Microsoft Azure Emulator
173+
ecf/
174+
rcf/
175+
176+
# Windows Store app package directories and files
177+
AppPackages/
178+
BundleArtifacts/
179+
Package.StoreAssociation.xml
180+
_pkginfo.txt
181+
182+
# Visual Studio cache files
183+
# files ending in .cache can be ignored
184+
*.[Cc]ache
185+
# but keep track of directories ending in .cache
186+
!*.[Cc]ache/
187+
188+
# Others
189+
ClientBin/
190+
~$*
191+
*~
192+
*.dbmdl
193+
*.dbproj.schemaview
194+
*.jfm
195+
*.pfx
196+
*.publishsettings
197+
node_modules/
198+
orleans.codegen.cs
199+
200+
# Since there are multiple workflows, uncomment next line to ignore bower_components
201+
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
202+
#bower_components/
203+
204+
# RIA/Silverlight projects
205+
Generated_Code/
206+
207+
# Backup & report files from converting an old project file
208+
# to a newer Visual Studio version. Backup files are not needed,
209+
# because we have git ;-)
210+
_UpgradeReport_Files/
211+
Backup*/
212+
UpgradeLog*.XML
213+
UpgradeLog*.htm
214+
215+
# SQL Server files
216+
*.mdf
217+
*.ldf
218+
219+
# Business Intelligence projects
220+
*.rdl.data
221+
*.bim.layout
222+
*.bim_*.settings
223+
224+
# Microsoft Fakes
225+
FakesAssemblies/
226+
227+
# GhostDoc plugin setting file
228+
*.GhostDoc.xml
229+
230+
# Node.js Tools for Visual Studio
231+
.ntvs_analysis.dat
232+
233+
# Visual Studio 6 build log
234+
*.plg
235+
236+
# Visual Studio 6 workspace options file
237+
*.opt
238+
239+
# Visual Studio LightSwitch build output
240+
**/*.HTMLClient/GeneratedArtifacts
241+
**/*.DesktopClient/GeneratedArtifacts
242+
**/*.DesktopClient/ModelManifest.xml
243+
**/*.Server/GeneratedArtifacts
244+
**/*.Server/ModelManifest.xml
245+
_Pvt_Extensions
246+
247+
# Paket dependency manager
248+
.paket/paket.exe
249+
paket-files/
250+
251+
# FAKE - F# Make
252+
.fake/
253+
254+
# JetBrains Rider
255+
.idea/
256+
*.sln.iml
257+
258+
# CodeRush
259+
.cr/
260+
261+
# Python Tools for Visual Studio (PTVS)
262+
__pycache__/
263+
*.pyc
264+
265+
/server/src/Networking/Legacy/CMakeFiles/*.stamp
266+
*.depend
267+
*.stamp
268+
*.list
269+
*.rule
270+
*.filters
271+
*.vcxproj
272+
*.cmake
273+
*.bin
274+
/Win32-Debug
275+
/includes/fmat
276+
/includes/gmock
277+
/includes/gtest
278+
/includes/logger
279+
/includes/pawn
280+
/includes/raknet
281+
/includes/server
282+
/includes/tinydir
283+
/includes/utils
284+
*.sln
285+
*.tlog
286+
/open.mp/Win32-Debug/temp/gtest/gtest.idb
287+
/open.mp/Win32-Debug
288+
/CMakeFiles
289+
*.pc
290+
/CMakeCache.txt
291+
*.amx
292+
*.i
293+
.vscode/

0 commit comments

Comments
 (0)