mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-02 21:58:42 +00:00
1
This commit is contained in:
parent
091596b811
commit
59d455b5a6
2 changed files with 12 additions and 3 deletions
14
.github/workflows/windows.yml
vendored
14
.github/workflows/windows.yml
vendored
|
@ -44,7 +44,7 @@ jobs:
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch_install}}
|
path: ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch_install}}
|
||||||
key: ${{ runner.os }}-Qt-cache/${{matrix.qt_ver}}/${{matrix.qt_arch}}
|
key: ${{ runner.os }}-Qt-cache1/${{matrix.qt_ver}}/${{matrix.qt_arch}}
|
||||||
- name: setupQt
|
- name: setupQt
|
||||||
if: steps.WindowsCacheQt.outputs.cache-hit == 'true'
|
if: steps.WindowsCacheQt.outputs.cache-hit == 'true'
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
@ -75,13 +75,23 @@ jobs:
|
||||||
shell: cmd
|
shell: cmd
|
||||||
env:
|
env:
|
||||||
vc_arch: ${{ matrix.msvc_arch }}
|
vc_arch: ${{ matrix.msvc_arch }}
|
||||||
publish_dir: ..\build\QtScrcpy-win${{ matrix.msvc_arch }}-v1.1.1
|
publish_dir: ..\build\QtScrcpy-win-${{ matrix.msvc_arch }}-v1.1.1
|
||||||
ENV_VCVARSALL: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat'
|
ENV_VCVARSALL: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat'
|
||||||
ENV_QT_MSVC: 'd:\a\QtScrcpy\Qt\5.12.7'
|
ENV_QT_MSVC: 'd:\a\QtScrcpy\Qt\5.12.7'
|
||||||
ENV_PUBLISH_DIR: '..\build\QtScrcpy-win32'
|
ENV_PUBLISH_DIR: '..\build\QtScrcpy-win32'
|
||||||
run: |
|
run: |
|
||||||
call "ci\win\build_for_win.bat" release %vc_arch%
|
call "ci\win\build_for_win.bat" release %vc_arch%
|
||||||
call "ci\win\publish_for_win.bat" %vc_arch% %publish_dir%
|
call "ci\win\publish_for_win.bat" %vc_arch% %publish_dir%
|
||||||
|
# 打包zip
|
||||||
|
Compress-Archive -Path ${env:publish_dir} ${env:publish_dir}'.zip'
|
||||||
|
# 上传artifact
|
||||||
|
- name: upload-artifact
|
||||||
|
env:
|
||||||
|
publish_dir: ..\build\QtScrcpy-win-${{ matrix.msvc_arch }}-v1.1.1
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: ${env:publish_dir}'.zip'
|
||||||
|
path: ${env:publish_dir}
|
||||||
# tag 打包
|
# tag 打包
|
||||||
- name: package
|
- name: package
|
||||||
if: startsWith(github.event.ref, 'refs/tags/')
|
if: startsWith(github.event.ref, 'refs/tags/')
|
||||||
|
|
|
@ -13,7 +13,6 @@ echo ---------------------------------------------------------------
|
||||||
|
|
||||||
echo ENV_VCVARSALL %ENV_VCVARSALL%
|
echo ENV_VCVARSALL %ENV_VCVARSALL%
|
||||||
echo ENV_QT_MSVC %ENV_QT_MSVC%
|
echo ENV_QT_MSVC %ENV_QT_MSVC%
|
||||||
echo ENV_BUILD_DIR %ENV_BUILD_DIR%
|
|
||||||
|
|
||||||
:: 获取脚本绝对路径
|
:: 获取脚本绝对路径
|
||||||
set script_path=%~dp0
|
set script_path=%~dp0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue