-
Notifications
You must be signed in to change notification settings - Fork 5
91 lines (77 loc) · 2.11 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: build
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
jobs:
linux:
name: Linux
runs-on: ubuntu-18.04
steps:
- name: Checkout server
uses: actions/checkout@v2
with:
repository: callofduty4x/CoD4x_Server
path: server
- name: Set up needed libs
run: |
sudo apt-get install g++-multilib gcc-multilib
sudo dpkg --add-architecture i386
sudo apt-get install nasm:i386 paxctl:i386 libtommath-dev:i386
- name: Checkout plugin
uses: actions/checkout@v2
with:
path: server/plugins/lua
- name: Build plugin
run: |
cd server/plugins/lua
make
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Get MinGW (i686-8.1.0-release-posix-dwarf)
run: |
$Uri = "https://downloads.sourceforge.net/mingw-w64/i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z"
$filename = "mingw32.7z"
cd C:/
Start-BitsTransfer -Source $Uri -Destination $filename
7z x $filename
- name: Get NASM
uses: ilammy/setup-nasm@v1
- name: Checkout server
uses: actions/checkout@v2
with:
repository: callofduty4x/CoD4x_Server
path: server
- name: Get pexports
run: |
cd server
Invoke-WebRequest "https://github.com/callofduty4x/CoD4x_Server/raw/master/tools/pexports-0.47-mingw32-bin.tar.xz" -OutFile "pexports.tar.xz"
7z x pexports.tar.xz
7z x pexports.tar
- name: Build server
run: |
$path = $env:Path
$env:Path = "C:\mingw32\bin;"
$env:Path += $path
cd server
mingw32-make
- name: Checkout plugin
uses: actions/checkout@v2
with:
path: server/plugins/lua
- name: Build plugin
run: |
$path = $env:Path
$env:Path = "C:\mingw32\bin;"
$env:Path += $path
cd server/plugins/lua
mingw32-make