-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpuff.yml
More file actions
31 lines (29 loc) · 969 Bytes
/
puff.yml
File metadata and controls
31 lines (29 loc) · 969 Bytes
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
configuration:
shell: powershell
default: cicd
tasks:
tests:
commands:
- cargo test -- --no-capture
build:
commands:
- cargo build --release --target i686-pc-windows-msvc
move:
commands:
- if (Test-Path "${SRCDS}/garrysmod/lua/bin/gmsv_atomic_git_win32.dll") { Remove-Item -Force "${SRCDS}/garrysmod/lua/bin/gmsv_atomic_git_win32.dll" }
- 'Move-Item -Force "./target/i686-pc-windows-msvc/release/atomic_git.dll" "${SRCDS}/garrysmod/lua/bin/gmsv_atomic_git_win32.dll"'
killsrcds:
commands:
- |
if (Get-Process "srcds" -ErrorAction SilentlyContinue) {
taskkill /F /IM srcds.exe
} else { }
startsrcds:
commands:
- cd ${SRCDS}; Start-Process "${SRCDS}/start.bat" -WindowStyle Hidden -RedirectStandardOutput "$env:TEMP\out.txt" -RedirectStandardError "$env:TEMP\err.txt"
cicd:
commands:
- puff build
- puff killsrcds
- puff move
- puff startsrcds