Skip to content

Commit

Permalink
CI Windows: further generalization
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MartinPulec committed Jan 27, 2025
1 parent 4405399 commit 3459027
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ jobs:
conf: [legacy]
include:
- conf: legacy
build_filename: GPUJPEG-Windows
cuda_arch: 30
cuda_installer: cuda_10.2.89_win10_network.exe
name_prefix: Windows

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

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

# vi: set expandtab sw=2:

0 comments on commit 3459027

Please sign in to comment.