Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 3ce78c6

Browse files
authored
Merge pull request katursis#79 from AmyrAhmady/omp
Update omp SDK, add buid CI, fix linux build file generation
2 parents 78a2ed5 + 8db01fd commit 3ce78c6

File tree

3 files changed

+754
-673
lines changed

3 files changed

+754
-673
lines changed

.github/workflows/build.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "*"
8+
- "*/*"
9+
- "**"
10+
pull_request:
11+
branches:
12+
- "*"
13+
- "*/*"
14+
- "**"
15+
16+
jobs:
17+
build-windows-release:
18+
runs-on: windows-2019
19+
steps:
20+
- uses: actions/checkout@v3
21+
with:
22+
clean: true
23+
submodules: recursive
24+
fetch-depth: 0
25+
26+
- name: Setup Python
27+
uses: actions/setup-python@v2
28+
29+
- name: Install CMake
30+
uses: lukka/get-cmake@v.3.23.2
31+
32+
- name: Install latest conan
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install conan
36+
- name: Generate build files
37+
run: |
38+
mkdir build
39+
cd build
40+
cmake -DCMAKE_BUILD_TYPE=Release .. -G "Visual Studio 16 2019" -A Win32
41+
cmake --build . --config Release
42+
- name: Upload artifacts
43+
uses: actions/upload-artifact@v3
44+
with:
45+
name: pawnraknet-omp-win-release
46+
path: build/Release/pawnraknet.dll
47+
48+
build-linux-release:
49+
runs-on: ubuntu-18.04
50+
steps:
51+
- uses: actions/checkout@v3
52+
with:
53+
clean: true
54+
submodules: recursive
55+
fetch-depth: 0
56+
57+
- name: Install packages
58+
run: sudo apt-get install g++-multilib
59+
60+
- name: Setup Python
61+
uses: actions/setup-python@v2
62+
63+
- name: Install CMake
64+
uses: lukka/get-cmake@v.3.23.2
65+
66+
- name: Install latest conan
67+
run: |
68+
python -m pip install --upgrade pip
69+
pip install conan
70+
- name: Generate build files
71+
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32
72+
73+
- name: Build
74+
run: |
75+
cd build
76+
cmake --build . --config Release
77+
- name: Upload artifacts
78+
uses: actions/upload-artifact@v3
79+
with:
80+
name: pawnraknet-omp-linux-release
81+
path: build/pawnraknet.so

0 commit comments

Comments
 (0)