diff --git a/appveyor.yml b/appveyor.yml index 6c00de28..e4ae3197 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,6 +4,7 @@ configuration: Release environment: matrix: - BUILD_TYPE: tiny + - BUILD_TYPE: tiny32 - BUILD_TYPE: regular-asm - BUILD_TYPE: regular32-asm @@ -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 \ No newline at end of file + - 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 diff --git a/make.bat b/make.bat index 01df1ad8..73408925 100644 --- a/make.bat +++ b/make.bat @@ -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