forked from ivailosp/l4dtoolz
-
Notifications
You must be signed in to change notification settings - Fork 12
90 lines (86 loc) · 2.59 KB
/
main.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: l4dtoolz
on:
push:
branches:
- 'main'
paths-ignore:
- '**.md'
schedule:
- cron: '30 03 01 */3 *'
jobs:
build_linux:
runs-on: ubuntu-20.04
steps:
- name: Prepare env
run: |
echo "deb http://dk.archive.ubuntu.com/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt install gcc-5-multilib g++-5-multilib
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 100
- name: Checkout hl2sdk-l4d2
uses: actions/checkout@v3
with:
repository: lakwsh/hl2sdk-l4d2
path: hl2sdk-l4d2
- name: Checkout code
uses: actions/checkout@v3
with:
path: l4dtoolz
- name: Build L4DToolZ
working-directory: l4dtoolz
run: make all
- name: Upload L4DToolZ
uses: actions/upload-artifact@v3
with:
name: l4dtoolz-${{github.run_id}}
path: l4dtoolz/Release/l4dtoolz.so
build_windows:
runs-on: windows-2022
steps:
- name: Checkout hl2sdk-l4d2
uses: actions/checkout@v3
with:
repository: lakwsh/hl2sdk-l4d2
path: hl2sdk-l4d2
- name: Checkout code
uses: actions/checkout@v3
with:
path: l4dtoolz
- name: Setup msbuild
uses: microsoft/[email protected]
- name: Build hl2sdk
working-directory: hl2sdk-l4d2
run: msbuild tier1\tier1-2005.vcxproj /p:Configuration=Release /p:Platform=Win32 -maxcpucount:8
- name: Build L4DToolZ
working-directory: l4dtoolz
run: msbuild l4dtoolz.vcxproj /p:Configuration=Release /p:Platform=Win32 -maxcpucount:8
- name: Upload L4DToolZ
uses: actions/upload-artifact@v3
with:
name: l4dtoolz-${{github.run_id}}
path: l4dtoolz/Release/l4dtoolz.dll
upload_files:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Upload README
uses: actions/upload-artifact@v3
with:
name: l4dtoolz-${{github.run_id}}
path: README.md
- name: Upload README_EN
uses: actions/upload-artifact@v3
with:
name: l4dtoolz-${{github.run_id}}
path: README_EN.md
- name: Download vdf
run: wget https://oss.lakwsh.net/l4dtoolz.vdf
- name: Upload vdf
uses: actions/upload-artifact@v3
with:
name: l4dtoolz-${{github.run_id}}
path: l4dtoolz.vdf