ci: use cmd for portable file creation

This commit is contained in:
itsmattkc
2020-09-15 13:14:01 +10:00
committed by GitHub
parent e06b07283d
commit 64739e6162
+6 -5
View File
@@ -73,20 +73,21 @@ jobs:
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE
- name: Create Package
working-directory: ${{runner.workspace}}/build
shell: cmd
run: mkdir olive-editor && copy app\olive-editor.exe olive-editor && windeployqt olive-editor\olive-editor.exe && copy %GITHUB_WORKSPACE%\bin\*.dll olive-editor
- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C $BUILD_TYPE
- name: Create Package
working-directory: ${{runner.workspace}}/build
shell: cmd
run: mkdir olive-editor && copy app\olive-editor.exe olive-editor && windeployqt olive-editor\olive-editor.exe && copy %GITHUB_WORKSPACE%\bin\*.dll olive-editor
- name: Deploy Portable
working-directory: ${{runner.workspace}}/build/olive-editor
shell: cmd
run: copy nul olive-editor\portable && 7z a Olive-Windows-x86_64.zip olive-editor
- name: Upload artifact