Skip to content

Commit 4bea996

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 4bea996

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ccpp.yml

Lines changed: 11 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,25 @@ jobs:
165167
env:
166168
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
167169
run: |
170+
fname="${{ matrix.build_filename }}.zip"
171+
mv GPUJPEG.zip "./$fname"
168172
pacman -Sy --noconfirm mingw-w64-x86_64-jq
169173
PATH=/mingw64/bin:$PATH
170174
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
175+
.github/scripts/replace-asset.sh continuous "$fname"\
176+
application/zip "${{ matrix.name_prefix }} build"
172177
shell: C:\shells\msys2bash.cmd {0}
173178

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

183191
# vi: set expandtab sw=2:

0 commit comments

Comments
 (0)