Skip to content

Commit 20b398a

Browse files
committed
Use appveyor to build/release Windows binaries
Only does the deploy phase for tagged commits Contributes towards luvit#200
1 parent 377e21c commit 20b398a

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

appveyor.yml

+19-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ configuration: Release
44
environment:
55
matrix:
66
- BUILD_TYPE: tiny
7+
- BUILD_TYPE: tiny32
78
- BUILD_TYPE: regular-asm
89
- BUILD_TYPE: regular32-asm
910

@@ -22,10 +23,26 @@ build_script:
2223
test_script:
2324
- Make.bat test
2425

26+
after_build:
27+
- Make.bat artifacts-%BUILD_TYPE%
28+
2529
artifacts:
26-
- path: luvi.exe
30+
- path: artifacts\*.exe
31+
- path: artifacts\*.lib
2732

2833
cache:
2934
- C:\ProgramData\chocolatey\bin -> appveyor.yml
3035
- C:\ProgramData\chocolatey\lib -> appveyor.yml
31-
- C:\Program Files\NASM -> appveyor.yml
36+
- C:\Program Files\NASM -> appveyor.yml
37+
38+
deploy:
39+
description: '' # appveyor says this is mandatory
40+
provider: GitHub
41+
auth_token:
42+
secure: Z1U2OG/0SsMQWFB4ReA0R/661E/r4PS2IVJ+jXC7UOBdj78TBjdmtJeUIWaCLoLQ
43+
artifact: /.*/ # everything
44+
draft: false
45+
prerelease: false
46+
force_update: true
47+
on:
48+
APPVEYOR_REPO_TAG: true # tags only

make.bat

+30
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,36 @@ git clean -f -d
8181
git checkout .
8282
GOTO :end
8383

84+
:artifacts-tiny
85+
IF NOT EXIST artifacts MKDIR artifacts
86+
COPY build\Release\luvi.exe artifacts\luvi-tiny-Windows-amd64.exe
87+
COPY build\Release\luvi.lib artifacts\luvi-tiny-Windows-amd64.lib
88+
COPY build\Release\luvi_renamed.lib artifacts\luvi_renamed-tiny-Windows-amd64.lib
89+
GOTO :end
90+
91+
:artifacts-tiny32
92+
IF NOT EXIST artifacts MKDIR artifacts
93+
COPY build\Release\luvi.exe artifacts\luvi-tiny-Windows-ia32.exe
94+
COPY build\Release\luvi.lib artifacts\luvi-tiny-Windows-ia32.lib
95+
COPY build\Release\luvi_renamed.lib artifacts\luvi_renamed-tiny-Windows-ia32.lib
96+
GOTO :end
97+
98+
:artifacts-regular
99+
:artifacts-regular-asm
100+
IF NOT EXIST artifacts MKDIR artifacts
101+
COPY build\Release\luvi.exe artifacts\luvi-regular-Windows-amd64.exe
102+
COPY build\Release\luvi.lib artifacts\luvi-regular-Windows-amd64.lib
103+
COPY build\Release\luvi_renamed.lib artifacts\luvi_renamed-regular-Windows-amd64.lib
104+
GOTO :end
105+
106+
:artifacts-regular32
107+
:artifacts-regular32-asm
108+
IF NOT EXIST artifacts MKDIR artifacts
109+
COPY build\Release\luvi.exe artifacts\luvi-regular-Windows-ia32.exe
110+
COPY build\Release\luvi.lib artifacts\luvi-regular-Windows-ia32.lib
111+
COPY build\Release\luvi_renamed.lib artifacts\luvi_renamed-regular-Windows-ia32.lib
112+
GOTO :end
113+
84114
:publish-tiny
85115
CALL make.bat reset
86116
CALL make.bat tiny

0 commit comments

Comments
 (0)