File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 42
42
modules : ' qthttpserver qtwebsockets'
43
43
env :
44
44
BUILD_TYPE : Release
45
+ BUILD_PATH : build
45
46
assume : --release
46
47
# 步骤
47
48
steps :
69
70
id : build
70
71
shell : cmd
71
72
run : |
72
- mkdir build
73
- cd build
73
+ mkdir ${{ env.BUILD_PATH }}
74
+ cd ${{ env.BUILD_PATH }}
74
75
cmake --version
75
76
cmake -A ${{ matrix.arch }} -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_INSTALL_PREFIX=${{ github.workspace }} ../
76
77
ls
80
81
prefix : ${{ github.workspace }}
81
82
shell : pwsh
82
83
run : |
83
- cd ${{ github.workspace }}/build
84
+ cd ${{ github.workspace }}/${{ env.BUILD_PATH }}
84
85
cmake --build . --target INSTALL --config ${{ env.BUILD_TYPE }}
85
86
ls
86
87
# 打包
90
91
archiveName : ' QCloudMusicApi-${{ github.ref_name }}-${{ matrix.qt_ver }}-${{ matrix.qt_arch }}'
91
92
shell : pwsh
92
93
run : |
93
- cd ${{ github.workspace }}/build
94
+ cd ${{ github.workspace }}/${{ env.BUILD_PATH }}
94
95
ls
95
96
Tree ${{ env.BUILD_TYPE }} /F
96
97
@@ -111,14 +112,14 @@ jobs:
111
112
- uses : actions/upload-artifact@v2
112
113
with :
113
114
name : ${{ steps.package.outputs.packageName }}
114
- path : ${{ github.workspace }}/build /${{ env.BUILD_TYPE }}
115
+ path : ${{ github.workspace }}/${{ env.BUILD_PATH }} /${{ env.BUILD_TYPE }}
115
116
# tag 上传Release
116
117
- name : Upload Release
117
118
if : startsWith(github.event.ref, 'refs/tags/')
118
119
uses : svenstaro/upload-release-action@v2
119
120
with :
120
121
repo_token : ${{ secrets.GITHUB_TOKEN }}
121
- file : ${{ github.workspace }}/build /${{ steps.package.outputs.packageName }}.zip
122
+ file : ${{ github.workspace }}/${{ env.BUILD_PATH }} /${{ steps.package.outputs.packageName }}.zip
122
123
asset_name : ${{ steps.package.outputs.packageName }}.zip
123
124
tag : ${{ github.ref }}
124
125
overwrite : true
You can’t perform that action at this time.
0 commit comments