-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (60 loc) · 1.83 KB
/
build.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
70
71
72
73
74
75
name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
SOLUTION_FILE_PATH: metamod/asexthook
BUILD_CONFIGURATION: Release
permissions:
contents: write
jobs:
build-win32:
runs-on: windows-latest
steps:
- name: Git Clone Metamod
uses: sudosubin/git-clone-action@v1.0.1
with:
repository: hzqst/metamod-fallguys
path: metamod
- name: Git Clone This
uses: sudosubin/git-clone-action@v1.0.1
with:
repository: DrAbcOfficial/asexthook
path: metamod/asexthook
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
name: asexthook.dll
path: metamod/build/addons/metamod/dlls/asexthook.dll
build-linux:
runs-on: ubuntu-latest
steps:
- name: Setup Build Enviroment
uses: ConorMacBride/install-package@v1
with:
apt: make build-essential gcc gcc-multilib g++-multilib
- name: Git Clone Metamod
uses: sudosubin/git-clone-action@v1.0.1
with:
repository: hzqst/metamod-fallguys
path: metamod
- name: Git Clone This
uses: sudosubin/git-clone-action@v1.0.1
with:
repository: DrAbcOfficial/asexthook
path: metamod/asexthook
- name: Build
working-directory: ${{env.SOLUTION_FILE_PATH}}
run: mkdir build && cd build && cmake .. && make
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
name: asexthook.so
path: ${{env.SOLUTION_FILE_PATH}}/Release/libasexthook.so