Skip to content

Commit 29e7188

Browse files
committed
ci: fix release artifact naming conflicts across platforms
1 parent 0c40b99 commit 29e7188

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/release.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ jobs:
88
build:
99
strategy:
1010
matrix:
11-
target:
12-
- x86_64-unknown-linux-gnu
13-
- aarch64-unknown-linux-gnu
14-
- x86_64-apple-darwin
15-
- aarch64-apple-darwin
11+
include:
12+
- target: x86_64-unknown-linux-gnu
13+
artifact_name: async-bash-mcp-linux-x86_64
14+
- target: aarch64-unknown-linux-gnu
15+
artifact_name: async-bash-mcp-linux-arm64
16+
- target: x86_64-apple-darwin
17+
artifact_name: async-bash-mcp-macos-x86_64
18+
- target: aarch64-apple-darwin
19+
artifact_name: async-bash-mcp-macos-arm64
1620
runs-on: ${{ contains(matrix.target, 'apple') && 'macos-latest' || 'ubuntu-latest' }}
1721
steps:
1822
- uses: actions/checkout@v4
@@ -29,7 +33,9 @@ jobs:
2933
else
3034
cargo build --release --target ${{ matrix.target }}
3135
fi
36+
- name: Rename binary
37+
run: cp target/${{ matrix.target }}/release/async-bash-mcp ${{ matrix.artifact_name }}
3238
- name: Upload binary
3339
uses: softprops/action-gh-release@v1
3440
with:
35-
files: target/${{ matrix.target }}/release/async-bash-mcp
41+
files: ${{ matrix.artifact_name }}

0 commit comments

Comments
 (0)