forked from spacemeowx2/switch-lan-play
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
55 lines (54 loc) · 1.3 KB
/
.drone.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
clone:
git:
image: plugins/git
tags: true
pipeline:
build-docker-linux:
image: docker
commands:
- docker build --rm -t switch-lan-play-build:linux -f docker/Dockerfile.linux .
volumes:
- /var/run/docker.sock:/var/run/docker.sock
lan-play-linux:
group: build
image: switch-lan-play-build:linux
commands:
- mkdir build-linux && cd build-linux
- cmake ..
- make -j$$(nproc)
- mv ./src/lan-play ./lan-play-linux
lan-play-win32:
group: build
image: dockcross/windows-x86
commands:
- mkdir build-win32 && cd build-win32
- cmake ..
- make -j$$(nproc)
- mv ./src/lan-play.exe ./lan-play-win32.exe
lan-play-win64:
group: build
image: dockcross/windows-x64
commands:
- mkdir build-win64 && cd build-win64
- cmake ..
- make -j$$(nproc)
- mv ./src/lan-play.exe ./lan-play-win64.exe
server:
group: build
image: node:alpine
commands:
- cd server
- npm install
- npm run build
github_pre_release:
image: plugins/github-release
secrets: [ github_token ]
files:
- build-linux/lan-play-linux
- build-win32/lan-play-win32.exe
- build-win64/lan-play-win64.exe
checksum:
- sha1
prerelease: true
when:
event: tag