-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathTaskfile.yml
37 lines (33 loc) · 848 Bytes
/
Taskfile.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
version: '2'
tasks:
#
# BUILDING
#
prebuild:
cmds:
- mkdir -p build/
build:
cmds:
- task prebuild
- task build:linux
- task build:windows
build:linux:
cmds:
- mkdir -p releases/
- docker build -f Dockerfile -t amyrahmady/samp-node-build-linux . --build-arg PLUGIN_VERSION={{ .PLUGIN_VERSION }}
- docker run -v=$(pwd)/test:/work/test -v=$(pwd)/releases:/work/releases amyrahmady/samp-node-build-linux
build:windows:
dir: build
cmds:
- mkdir -p ../releases
- rm -rf *
- cmake .. -DPLUGIN_VERSION={{ .PLUGIN_VERSION }} -A Win32
- cmake --build . --config Release
- cpack && mv cpack/*.zip ../releases
#
# TESTING
#
test:
cmds:
- sampctl package ensure && sampctl package build
- cd test && sampctl server run