Skip to content

Commit 204f950

Browse files
committed
put version name in built exe files
1 parent 016ca3d commit 204f950

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
- name: Build windows executable
3636
run: |
3737
nix build -L .#patchelf-win32 .#patchelf-win64
38-
install -D ./result/bin/patchelf.exe ./dist/patchelf-win32.exe
39-
install -D ./result-1/bin/patchelf.exe ./dist/patchelf-win64.exe
38+
install -D ./result/bin/patchelf.exe ./dist/patchelf-win32-$(cat version).exe
39+
install -D ./result-1/bin/patchelf.exe ./dist/patchelf-win64-$(cat version).exe
4040
- uses: actions/upload-artifact@v3
4141
with:
4242
name: patchelf
@@ -55,10 +55,10 @@ jobs:
5555
- name: Show binaries
5656
run: dir .\\dist
5757
- name: Test windows 64-bit binary
58-
run: .\\dist\\patchelf-win32.exe --version
58+
run: .\\dist\\patchelf-win32-*.exe --version
5959

6060
- name: Test windows 32-bit binary
61-
run: .\\dist\\patchelf-win64.exe --version
61+
run: .\\dist\\patchelf-win64-*.exe --version
6262

6363
build_musl:
6464
name: Build static musl binaries

0 commit comments

Comments
 (0)