This repository has been archived by the owner on Jun 16, 2022. It is now read-only.
forked from Southclaws/pawn-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
58 lines (46 loc) · 1.42 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# https://taskfile.dev
version: "2"
tasks:
prepare:
cmds:
- cd test && sampctl server ensure
- sampctl package ensure
toolchain-win32:
cmds:
- rustup default stable-i686-pc-windows-msvc
build-win32-release:
deps: [toolchain-win32]
cmds:
- cargo +stable-i686-pc-windows-msvc build --release
- cp target/release/pawn_templates.dll test/plugins/templates.dll
build-win32-debug:
deps: [toolchain-win32]
cmds:
- cargo +stable-i686-pc-windows-msvc build
- cp target/debug/pawn_templates.dll test/plugins/templates.dll
toolchain-linux:
cmds:
- rustup default stable-i686-unknown-linux-gnu
build-linux-release:
deps: [toolchain-linux]
cmds:
- cargo +stable-i686-unknown-linux-gnu build --release
- cp target/release/libpawn_templates.so test/plugins/templates.so
build-linux-debug:
deps: [toolchain-linux]
cmds:
- cargo +stable-i686-unknown-linux-gnu build
- cp target/debug/libpawn_templates.so test/plugins/templates.so
test-native:
cmds:
- sampctl package build
- cd test && sampctl server run
test-container:
cmds:
- sampctl package build
- cd test && sampctl server run --container
build-container:
cmds:
- rm -rf build
- docker build -t southclaws/templates-build .
- docker run -v $(pwd)/test/plugins:/root/test/plugins southclaws/templates-build