mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-26 02:42:25 +00:00
Add Windows Autobuild CI (#244)
* Add Windows x64 CI * Add missing dependency * Fix rapidjson build * Add Windows build to Travis CI Add Windows x86 build to GitHub Actions * Fix mingw32-make not found * Fix subsystem on Actions Fix install prefix on Travis CI. * Use MINGW_PREFIX instead of /usr * Clean up scripts Add Windows x86 build to Travis CI.
This commit is contained in:
72
.travis.yml
72
.travis.yml
@@ -80,4 +80,74 @@ jobs:
|
||||
skip_cleanup: true
|
||||
draft: true
|
||||
on:
|
||||
tags: true
|
||||
tags: true
|
||||
- name: "Windows x86_64 Build"
|
||||
os: windows
|
||||
before_install:
|
||||
- |-
|
||||
[[ ! -f C:/tools/msys64/msys2_shell.cmd ]] && rm -rf C:/tools/msys64
|
||||
choco uninstall -y mingw
|
||||
choco upgrade --no-progress -y msys2
|
||||
export msys2='cmd //C RefreshEnv.cmd '
|
||||
export msys2+='& set MSYS=winsymlinks:nativestrict '
|
||||
export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start'
|
||||
export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --"
|
||||
export msys2+=" -msys2 -c "\"\$@"\" --"
|
||||
$msys2 pacman --sync --noconfirm --needed base-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-libevent mingw-w64-x86_64-pcre2 python2 python2-pip
|
||||
taskkill //IM gpg-agent.exe //F
|
||||
export PATH=/C/tools/msys64/mingw64/bin:$PATH
|
||||
export MAKE=make
|
||||
before_cache:
|
||||
- |-
|
||||
$msys2 pacman --sync --clean --noconfirm
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/AppData/Local/Temp/chocolatey
|
||||
- /C/tools/msys64
|
||||
script:
|
||||
- $mingw64 bash scripts/build.windows.release.sh
|
||||
before_deploy:
|
||||
- 7z a subconverter_win64.7z subconverter/
|
||||
deploy:
|
||||
provider: releases
|
||||
token: "$GITHUB_OAUTH_TOKEN"
|
||||
file: "subconverter_win64.7z"
|
||||
skip_cleanup: true
|
||||
draft: true
|
||||
on:
|
||||
tags: true
|
||||
- name: "Windows x86 Build"
|
||||
os: windows
|
||||
before_install:
|
||||
- |-
|
||||
[[ ! -f C:/tools/msys64/msys2_shell.cmd ]] && rm -rf C:/tools/msys64
|
||||
choco uninstall -y mingw
|
||||
choco upgrade --no-progress -y msys2
|
||||
export msys2='cmd //C RefreshEnv.cmd '
|
||||
export msys2+='& set MSYS=winsymlinks:nativestrict '
|
||||
export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start'
|
||||
export mingw32="$msys2 -mingw32 -full-path -here -c "\"\$@"\" --"
|
||||
export msys2+=" -msys2 -c "\"\$@"\" --"
|
||||
$msys2 pacman --sync --noconfirm --needed base-devel git mingw-w64-i686-gcc mingw-w64-i686-cmake mingw-w64-i686-libevent mingw-w64-i686-pcre2 python2 python2-pip
|
||||
taskkill //IM gpg-agent.exe //F
|
||||
export PATH=/C/tools/msys64/mingw64/bin:$PATH
|
||||
export MAKE=make
|
||||
before_cache:
|
||||
- |-
|
||||
$msys2 pacman --sync --clean --noconfirm
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/AppData/Local/Temp/chocolatey
|
||||
- /C/tools/msys64
|
||||
script:
|
||||
- $mingw32 bash scripts/build.windows.release.sh
|
||||
before_deploy:
|
||||
- 7z a subconverter_win32.7z subconverter/
|
||||
deploy:
|
||||
provider: releases
|
||||
token: "$GITHUB_OAUTH_TOKEN"
|
||||
file: "subconverter_win32.7z"
|
||||
skip_cleanup: true
|
||||
draft: true
|
||||
on:
|
||||
tags: true
|
||||
|
||||
Reference in New Issue
Block a user