1
+ name : Plugin build
2
+
3
+ on :
4
+ push :
5
+ paths-ignore :
6
+ - LICENSE
7
+ - README.md
8
+ pull_request :
9
+ paths-ignore :
10
+ - LICENSE
11
+ - README.md
12
+
13
+ jobs :
14
+ linux :
15
+ name : linux build
16
+ runs-on : ubuntu-latest
17
+ container :
18
+ image : idk1703/build-img:11
19
+ steps :
20
+ - name : Checking out MM:Source
21
+ uses : actions/checkout@v3
22
+ with :
23
+ repository : alliedmodders/metamod-source
24
+ ref : master
25
+ path : metamod-source
26
+
27
+ - name : Checking out hl2sdk
28
+ uses : actions/checkout@v3
29
+ with :
30
+ repository : alliedmodders/hl2sdk
31
+ ref : cs2
32
+ path : hl2sdk-cs2
33
+
34
+ - name : Checking out own repository
35
+ uses : actions/checkout@v3
36
+ with :
37
+ path : cs2fixes
38
+ submodules : recursive
39
+
40
+ - name : Compiling files
41
+ working-directory : cs2fixes
42
+ run : |
43
+ python3 configure.py --enable-optimize --symbol-files --sdks cs2
44
+ ambuild objdir
45
+
46
+ windows :
47
+ name : windows build
48
+ runs-on : windows-latest
49
+ steps :
50
+ - name : Setting up Python
51
+ uses : actions/setup-python@v4
52
+ with :
53
+ python-version : ' 3.10'
54
+
55
+ - name : Install Python dependencies
56
+ run : |
57
+ python3 -m pip install --upgrade pip setuptools wheel
58
+ pip install git+https://github.com/alliedmodders/ambuild
59
+
60
+ - name : Checking out MM:Source
61
+ uses : actions/checkout@v3
62
+ with :
63
+ repository : alliedmodders/metamod-source
64
+ ref : master
65
+ path : metamod-source
66
+
67
+ - name : Checking out hl2sdk
68
+ uses : actions/checkout@v3
69
+ with :
70
+ repository : alliedmodders/hl2sdk
71
+ ref : cs2
72
+ path : hl2sdk-cs2
73
+
74
+ - name : Checking out own repository
75
+ uses : actions/checkout@v3
76
+ with :
77
+ path : cs2fixes
78
+ submodules : recursive
79
+
80
+ - name : Compiling files
81
+ working-directory : cs2fixes
82
+ run : |
83
+ python3 configure.py --enable-optimize --symbol-files --sdks cs2
84
+ ambuild objdir
0 commit comments