-
Notifications
You must be signed in to change notification settings - Fork 190
/
Copy path.drone.yml
45 lines (45 loc) · 1.14 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
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
build-docker-win:
image: docker
commands:
- docker build --rm -t switch-lan-play-build:win -f docker/Dockerfile.win .
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)
lan-play-windows:
group: build
image: switch-lan-play-build:win
commands:
- mkdir build.win && cd build.win
- cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-mingw64.cmake ..
- make -j$$(nproc)
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
- build.win/lan-play.exe
checksum:
- sha1
prerelease: true
when:
event: tag