Skip to content

Commit

Permalink
Use appveyor to build/release Windows binaries
Browse files Browse the repository at this point in the history
Only does the deploy phase for tagged commits

Contributes towards luvit#200
  • Loading branch information
squeek502 committed Mar 27, 2019
1 parent 377e21c commit 20b398a
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
21 changes: 19 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ configuration: Release
environment:
matrix:
- BUILD_TYPE: tiny
- BUILD_TYPE: tiny32
- BUILD_TYPE: regular-asm
- BUILD_TYPE: regular32-asm

Expand All @@ -22,10 +23,26 @@ build_script:
test_script:
- Make.bat test

after_build:
- Make.bat artifacts-%BUILD_TYPE%

artifacts:
- path: luvi.exe
- path: artifacts\*.exe
- path: artifacts\*.lib

cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
- C:\Program Files\NASM -> appveyor.yml
- C:\Program Files\NASM -> appveyor.yml

deploy:
description: '' # appveyor says this is mandatory
provider: GitHub
auth_token:
secure: Z1U2OG/0SsMQWFB4ReA0R/661E/r4PS2IVJ+jXC7UOBdj78TBjdmtJeUIWaCLoLQ
artifact: /.*/ # everything
draft: false
prerelease: false
force_update: true
on:
APPVEYOR_REPO_TAG: true # tags only
30 changes: 30 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,36 @@ git clean -f -d
git checkout .
GOTO :end

:artifacts-tiny
IF NOT EXIST artifacts MKDIR artifacts
COPY build\Release\luvi.exe artifacts\luvi-tiny-Windows-amd64.exe
COPY build\Release\luvi.lib artifacts\luvi-tiny-Windows-amd64.lib
COPY build\Release\luvi_renamed.lib artifacts\luvi_renamed-tiny-Windows-amd64.lib
GOTO :end

:artifacts-tiny32
IF NOT EXIST artifacts MKDIR artifacts
COPY build\Release\luvi.exe artifacts\luvi-tiny-Windows-ia32.exe
COPY build\Release\luvi.lib artifacts\luvi-tiny-Windows-ia32.lib
COPY build\Release\luvi_renamed.lib artifacts\luvi_renamed-tiny-Windows-ia32.lib
GOTO :end

:artifacts-regular
:artifacts-regular-asm
IF NOT EXIST artifacts MKDIR artifacts
COPY build\Release\luvi.exe artifacts\luvi-regular-Windows-amd64.exe
COPY build\Release\luvi.lib artifacts\luvi-regular-Windows-amd64.lib
COPY build\Release\luvi_renamed.lib artifacts\luvi_renamed-regular-Windows-amd64.lib
GOTO :end

:artifacts-regular32
:artifacts-regular32-asm
IF NOT EXIST artifacts MKDIR artifacts
COPY build\Release\luvi.exe artifacts\luvi-regular-Windows-ia32.exe
COPY build\Release\luvi.lib artifacts\luvi-regular-Windows-ia32.lib
COPY build\Release\luvi_renamed.lib artifacts\luvi_renamed-regular-Windows-ia32.lib
GOTO :end

:publish-tiny
CALL make.bat reset
CALL make.bat tiny
Expand Down

1 comment on commit 20b398a

@zhaozg
Copy link

@zhaozg zhaozg commented on 20b398a Mar 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can *.lib be ignored, what problems do they solve?

Please sign in to comment.