Skip to content

Commit 49138ef

Browse files
fix release workflow: unique binary names per platform
Previously all unix builds uploaded as "xmaster", causing collisions. Now each platform gets a distinct asset name: - xmaster-x86_64-linux - xmaster-aarch64-darwin - xmaster-x86_64-darwin - xmaster-x86_64-windows.exe
1 parent b583ac7 commit 49138ef

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,19 @@ jobs:
1818
- os: ubuntu-latest
1919
target: x86_64-unknown-linux-gnu
2020
artifact: xmaster
21+
asset_name: xmaster-x86_64-linux
2122
- os: macos-latest
2223
target: aarch64-apple-darwin
2324
artifact: xmaster
25+
asset_name: xmaster-aarch64-darwin
2426
- os: macos-13
2527
target: x86_64-apple-darwin
2628
artifact: xmaster
29+
asset_name: xmaster-x86_64-darwin
2730
- os: windows-latest
2831
target: x86_64-pc-windows-msvc
2932
artifact: xmaster.exe
33+
asset_name: xmaster-x86_64-windows.exe
3034
runs-on: ${{ matrix.os }}
3135
steps:
3236
- uses: actions/checkout@v4
@@ -37,7 +41,10 @@ jobs:
3741
with:
3842
key: ${{ matrix.target }}
3943
- run: cargo build --release --target ${{ matrix.target }}
44+
- name: Rename artifact
45+
shell: bash
46+
run: cp target/${{ matrix.target }}/release/${{ matrix.artifact }} ${{ matrix.asset_name }}
4047
- name: Upload to release
4148
uses: softprops/action-gh-release@v2
4249
with:
43-
files: target/${{ matrix.target }}/release/${{ matrix.artifact }}
50+
files: ${{ matrix.asset_name }}

0 commit comments

Comments
 (0)