This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
57 lines (49 loc) · 1.85 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
name: Build
on:
push:
pull_request:
schedule:
- cron: "15 0 */7 * *"
jobs:
build:
name: Build plugins
runs-on: ubuntu-latest
strategy:
matrix:
amxmodx: ["1.9", "1.10"]
fail-fast: false
steps:
- name: Checkout repo
uses: actions/checkout@v1
- name: Download AMXX && ReAPI and unpacking
env:
AMXMODX: ${{ matrix.amxmodx }}
run: |
curl -s https://www.amxmodx.org/amxxdrop/$AMXMODX/$(curl https://www.amxmodx.org/amxxdrop/$AMXMODX/amxmodx-latest-base-linux) -# | tar xz
curl -OL https://github.com/s1lentq/reapi/releases/download/5.19.0.211/reapi_5.19.0.211-dev.zip -#
unzip reapi_*-dev.zip && rm reapi_*-dev.zip
cd addons/amxmodx && rm scripting/*.sma && rm plugins/*.amxx
- name: Compile plugins AMXX Version
run: |
cp -Rf ./rezombieplague/* ./addons/amxmodx/scripting
mkdir -p ./addons/amxmodx/plugins/rezombieplague/api
mkdir -p ./addons/amxmodx/plugins/rezombieplague/addons
mkdir -p ./addons/amxmodx/plugins/rezombieplague/player
mkdir -p ./addons/amxmodx/plugins/rezombieplague/gamemodes
mkdir -p ./addons/amxmodx/plugins/rezombieplague/items
mkdir -p ./addons/amxmodx/plugins/rezombieplague/menus
mkdir -p ./addons/amxmodx/plugins/rezombieplague/weapons
mkdir -p ./addons/amxmodx/plugins/rezombieplague/configs
cd addons/amxmodx/scripting
chmod +x amxxpc32.so
chmod +x amxxpc
function realpath {
echo $(cd $(dirname $1); pwd)/$(basename $1);
}
amxxpc_path=$(realpath amxxpc)
find * -name "*.sma" \
-exec echo -e "\n\n> Compile {} <" \;\
-exec ${amxxpc_path} {} \
-iinclude \
-o../plugins/{} \
\;