Skip to content

Commit 3459027

Browse files
committed
CI Windows: further generalization
Add -Windows explicitly to GPUJPEG.{zip,exe} - at least the first didn't make it clear that it is a Windows build. Make it resemble Linux build - also make a space for all-architectures build as it is already in Linux.
1 parent 4405399 commit 3459027

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/ccpp.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ jobs:
103103
conf: [legacy]
104104
include:
105105
- conf: legacy
106+
build_filename: GPUJPEG-Windows
106107
cuda_arch: 30
107108
cuda_installer: cuda_10.2.89_win10_network.exe
109+
name_prefix: Windows
108110

109111
steps:
110112
- uses: actions/checkout@main
@@ -165,19 +167,24 @@ jobs:
165167
env:
166168
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
167169
run: |
170+
mv GPUJPEG.zip "./${{ matrix.build_filename }}.zip"
168171
pacman -Sy --noconfirm mingw-w64-x86_64-jq
169172
PATH=/mingw64/bin:$PATH
170173
echo 'PATH=/mingw64/bin:$PATH' >> ~/.bash_profile # store the path also for next step
171-
.github/scripts/replace-asset.sh continuous GPUJPEG.zip application/zip Windows%20build
174+
.github/scripts/replace-asset.sh continuous GPUJPEG.zip\
175+
application/zip "${{ matrix.name_prefix }} build"
172176
shell: C:\shells\msys2bash.cmd {0}
173177

174178
- name: Upload Release Installer Asset
175179
if: github.repository == 'CESNET/GPUJPEG' && github.ref == 'refs/heads/master'
176180
env:
177181
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
178182
run: |
179-
mv gpujpeg-*-win64.exe GPUJPEG.exe
180-
.github/scripts/replace-asset.sh continuous GPUJPEG.exe application/vnd.microsoft.portable-executable Windows%20installer
183+
fname="${{ matrix.build_filename }}.exe"
184+
mv gpujpeg-*-win64.exe "./$fname"
185+
.github/scripts/replace-asset.sh continuous "$fname" \
186+
application/vnd.microsoft.portable-executable\
187+
"${{ matrix.name_prefix }} installer"
181188
shell: C:\shells\msys2bash.cmd {0}
182189

183190
# vi: set expandtab sw=2:

0 commit comments

Comments
 (0)