Skip to content

Commit a64fdf9

Browse files
committed
Rename zip files
1 parent 03c4ac4 commit a64fdf9

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/build_windows_binaries.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
zip
3030
unzip
3131
32+
- name: Get Project Version
33+
shell: msys2 {0}
34+
run: |
35+
VERSION=$(grep 'PRIMECOUNT_VERSION' include/primecount.h | grep -oP '\d+\.\d+(\.\d+)?')
36+
echo "PROJECT_VERSION=$VERSION" >> $GITHUB_ENV
37+
3238
- name: Build Windows x64 binary
3339
shell: msys2 {0}
3440
run: |
@@ -38,8 +44,8 @@ jobs:
3844
- name: Upload Windows x64 CI artifact
3945
uses: actions/upload-artifact@v4
4046
with:
41-
name: windows-x64-${{ github.sha }}
42-
path: build-release\primecount-*-win-x64.zip
47+
name: primecount-${{ env.PROJECT_VERSION }}-win-x64.zip
48+
path: build-release/primecount-${{ env.PROJECT_VERSION }}-win-x64.zip
4349
retention-days: 7
4450

4551
windows-arm64:
@@ -63,6 +69,12 @@ jobs:
6369
zip
6470
unzip
6571
72+
- name: Get Project Version
73+
shell: msys2 {0}
74+
run: |
75+
VERSION=$(grep -m 1 "VERSION" CMakeLists.txt | grep -o "[0-9.]\+")
76+
echo "PROJECT_VERSION=$VERSION" >> $GITHUB_ENV
77+
6678
- name: Build Windows ARM64 binary
6779
shell: msys2 {0}
6880
run: |
@@ -72,6 +84,6 @@ jobs:
7284
- name: Upload Windows ARM64 CI artifact
7385
uses: actions/upload-artifact@v4
7486
with:
75-
name: windows-arm64-${{ github.sha }}
76-
path: build-release-arm64\primecount-*-win-arm64.zip
87+
name: primecount-${{ env.PROJECT_VERSION }}-win-arm64.zip
88+
path: build-release-arm64/primecount-${{ env.PROJECT_VERSION }}-win-arm64.zip
7789
retention-days: 7

0 commit comments

Comments
 (0)