-
Notifications
You must be signed in to change notification settings - Fork 148
60 lines (50 loc) · 1.53 KB
/
ci-cd.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
name: CI/CD
on: [push, pull_request]
jobs:
linux:
name: Linux-x86
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [g++, clang++]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install G++ Multilib, Clang++ & OpenGL library
run: |
sudo apt update
sudo apt install -y g++-multilib clang libgl1-mesa-dev
- name: Build
run: |
cd linux
make COMPILER=${{ matrix.compiler }} CFG=release -j2
- name: Deploy
uses: actions/[email protected]
with:
name: Linux-x86-${{ matrix.compiler }}
path: |
linux/release/client.so
linux/release/client.so.dbg
linux/release/hl.so
linux/release/hl.so.dbg
win32:
name: Win32
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x86
- name: Build
run: msbuild projects/vs2019/projects.sln -t:rebuild -property:Configuration=Release -maxcpucount:2
- name: Deploy
uses: actions/[email protected]
with:
name: Win32
path: |
projects/vs2019/Release/hl_cdll/client.dll
projects/vs2019/Release/hl_cdll/client.pdb
projects/vs2019/Release/hldll/hl.dll
projects/vs2019/Release/hldll/hl.pdb