-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (65 loc) · 1.84 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
build_windows:
name: Build Test Client for Windows
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
lfs: 'true'
- name: Configure and Build
run: |
mkdir -p test/build && cd test/build
cmake .. -G "Visual Studio 17 2022" -A x64
cmake --build . --config Release
cp Release/odin_minimal.exe .
- name: Upload Job Artifacts
uses: actions/upload-artifact@v3
with:
name: odin-minimal-windows-x86_64
path: |
test/build/odin_minimal.exe
test/build/odin.dll
build_linux:
name: Build Test Client for Linux
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
lfs: 'true'
- name: Configure and Build
run: |
mkdir -p test/build && cd test/build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
patchelf --set-rpath '$ORIGIN' ./odin_minimal
- name: Upload Job Artifacts
uses: actions/upload-artifact@v3
with:
name: odin-minimal-linux-x86_64
path: |
test/build/odin_minimal
test/build/libodin.so
build_macos:
name: Build Test Client for macOS
runs-on: macos-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
lfs: 'true'
- name: Configure and Build
run: |
mkdir -p test/build && cd test/build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
- name: Upload Job Artifacts
uses: actions/upload-artifact@v3
with:
name: odin-minimal-macos-x86_64
path: |
test/build/odin_minimal
test/build/libodin.dylib