File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 : |
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 :
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 : |
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
You can’t perform that action at this time.
0 commit comments