File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7575 shell : bash
7676 run : |
7777 mkdir BUILD_RELEASE
78- cd BUILD_RELEASE
78+ pushd BUILD_RELEASE
7979 cmake -DCMAKE_BUILD_TYPE=Release ..
8080 cmake --build . --parallel $BUILD_JOBS --config Release
81+ mkdir -p release-artifacts
82+ cmake --install . --prefix ./${{ env.REPO_NAME }}-release
83+ popd
84+ - name : Build release
85+ shell : bash
86+ run : |
87+ pushd BUILD_RELEASE
88+ cmake --install . --prefix ./${{ env.REPO_NAME }}-release
89+ popd
90+ - name : Create zip
91+ shell : bash
92+ run : |
93+ pushd BUILD_RELEASE
94+ zip -r ../${{ env.REPO_NAME }}-release-${{ matrix.platform }}.zip ${{ env.REPO_NAME }}-release/
95+ popd
8196
8297 vk_video_samples-win :
8398 strategy :
@@ -146,8 +161,23 @@ jobs:
146161 cmake --build . --parallel $BUILD_JOBS --config Debug
147162
148163 - name : Build Release
164+ shell : bash
149165 run : |
150166 mkdir BUILD_RELEASE
151- cd BUILD_RELEASE
167+ pushd BUILD_RELEASE
152168 cmake -DCMAKE_GENERATOR_PLATFORM=${{ matrix.cmake_arch }} -DCMAKE_BUILD_TYPE=Release ..
153169 cmake --build . --parallel $BUILD_JOBS --config Release
170+ mkdir release-artifacts
171+ - name : Install Release
172+ shell : bash
173+ run : |
174+ pushd BUILD_RELEASE
175+ cmake --install . --prefix ./${{ env.REPO_NAME }}-release --config Release
176+ popd
177+
178+ - name : Create zip
179+ shell : bash
180+ run : |
181+ pushd BUILD_RELEASE
182+ zip -r ../${{ env.REPO_NAME }}-release-${{ matrix.platform }}.zip ${{ env.REPO_NAME }}-release
183+ popd
Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ jobs:
3232 PLATFORM : linux-x86_64
3333 shell : bash
3434 run :
35- mv $REPO_NAME-release-$PLATFORM.zip $REPO_NAME-${{ github.ref_name }}-$PLATFORM.zip
35+ mv ${{ env. REPO_NAME }} -release-${{ env. PLATFORM }} .zip ${{ env. REPO_NAME }} -${{ github.ref_name }}-${{ env. PLATFORM }} .zip
3636 - name : Upload linux release
3737 env :
3838 PLATFORM : linux-x86_64
3939 uses : actions/upload-artifact@v4
4040 with :
4141 name : ${{ env.REPO_NAME }}-${{ env.ref_name }}-${{ github.PLATFORM }}
42- path : ${{ env.REPO_NAME }}-${{ env.ref_name }}-{{ github.PLATFORM }}.zip
42+ path : ${{ env.REPO_NAME }}-${{ env.ref_name }}-$ {{ github.PLATFORM }}.zip
4343
4444 - name : Archive Windows zip results
4545 uses : actions/download-artifact@v4
@@ -53,14 +53,14 @@ jobs:
5353 PLATFORM : windows-x64
5454 shell : bash
5555 run :
56- mv $REPO_NAME-release-$PLATFORM.zip $REPO_NAME-${{ github.ref_name }}-$PLATFORM.zip
56+ mv ${{ env. REPO_NAME }} -release-${{ env. PLATFORM }} .zip ${{ env. REPO_NAME }} -${{ github.ref_name }}-${{ env. PLATFORM }} .zip
5757 - name : Upload Windows release
5858 uses : actions/upload-artifact@v4
5959 env :
6060 PLATFORM : windows-x64
6161 with :
6262 name : ${{ env.REPO_NAME }}-${{ env.ref_name }}-${{ github.PLATFORM }}
63- path : ${{ env.REPO_NAME }}-${{ env.ref_name }}-{{ github.PLATFORM }}.zip
63+ path : ${{ env.REPO_NAME }}-${{ env.ref_name }}-$ {{ github.PLATFORM }}.zip
6464
6565 - name : Create Release
6666 id : create_release
You can’t perform that action at this time.
0 commit comments