forked from SolarLune/masterplan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
50 lines (39 loc) · 1.25 KB
/
.appveyor.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
version: 0.4.0.{build}
image:
- macos
- Visual Studio 2017
- Ubuntu
platform:
- x64
# We don't want to build any other branches; just master
branches:
only:
- master
for:
-
matrix:
only:
- image: Ubuntu
install:
sudo apt-get install libgl1-mesa-dev libxi-dev libxcursor-dev libxrandr-dev libxinerama-dev libasound2-dev -y
-
matrix:
only:
- image: Visual Studio 2017
install:
# Set the path to include the 64-bit MinGW
- set PATH=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
build_script:
- go run ./build_script/main.go -b
# There's probably a better way to do this than copy libwinpthread-1.dll to the distribution folder but I'm stupid and
# have spent, like, 20 hours getting it straightened out. This ends here.
- copy C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin\libwinpthread-1.dll bin\libwinpthread-1.dll
build_script:
- go run ./build_script/main.go -b # Build...
after_build:
- go run ./build_script/main.go -c # ... Then compress.
artifacts:
- path: bin\*.tar.gz
name: "MasterPlan-$(APPVEYOR_BUILD_WORKER_IMAGE)-$(APPVEYOR_BUILD_VERSION)"
- path: bin\*.zip
name: "MasterPlan-$(APPVEYOR_BUILD_WORKER_IMAGE)-$(APPVEYOR_BUILD_VERSION)"