-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (73 loc) · 2.07 KB
/
Copy pathkvlib.yml
File metadata and controls
82 lines (73 loc) · 2.07 KB
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
76
77
78
name: Build
on:
workflow_dispatch:
jobs:
build_kvlib_linux:
runs-on: ubuntu-20.04
steps:
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build kvlib
working-directory: ./kvlib
run: xmake build -y linux
- name: Upload kvlib
uses: actions/upload-artifact@v4
with:
name: kvlib_linux
path: kvlib/build/linux/x86_64/release/kvlib.so
build_kvlib_windows:
runs-on: windows-latest
steps:
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build kvlib
working-directory: ./kvlib
run: xmake build -y windows
- name: Upload kvlib
uses: actions/upload-artifact@v4
with:
name: kvlib_windows
path: kvlib/build/windows/x64/release/kvlib.dll
build_dotnet:
runs-on: windows-latest
needs: [build_kvlib_linux, build_kvlib_windows]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Prepare kvlib dir
run: mkdir -p ./kvlib_output
- name: Download kvlib linux
uses: actions/download-artifact@v4
with:
name: kvlib_linux
path: ./kvlib_output
- name: Download kvlib windows
uses: actions/download-artifact@v4
with:
name: kvlib_windows
path: ./kvlib_output
- name: Build .NET
run: dotnet build
- name: Copy kvlib to plugin
run: cp ./kvlib_output/* ./build/addons/counterstrikesharp/plugins/SkyboxChanger
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: SkyboxChanger
path: ./build