Skip to content

Commit db02638

Browse files
codeprakhar25claude
andcommitted
ci: include scripts in release tarballs, add Linux arm64 target
- Add aarch64-unknown-linux-gnu via cross-rs for Linux arm64 support - Copy scripts/*.py into dist/package/scripts/ so the install script can extract them without a separate git clone - Guard agentdiff-mcp copy with || true in case binary is absent Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9168354 commit db02638

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ jobs:
6464
target: aarch64-apple-darwin
6565
ext: ""
6666
archive: tar.gz
67+
- os: ubuntu-latest
68+
target: aarch64-unknown-linux-gnu
69+
ext: ""
70+
archive: tar.gz
71+
use_cross: true
6772
- os: windows-latest
6873
target: x86_64-pc-windows-msvc
6974
ext: ".exe"
@@ -78,18 +83,29 @@ jobs:
7883
with:
7984
targets: ${{ matrix.target }}
8085

86+
- name: Install cross (arm64 Linux only)
87+
if: matrix.use_cross == true
88+
run: cargo install cross --git https://github.com/cross-rs/cross
89+
8190
- name: Build release binaries
82-
run: cargo build --release --locked --target ${{ matrix.target }}
91+
shell: bash
92+
run: |
93+
if [[ "${{ matrix.use_cross }}" == "true" ]]; then
94+
cross build --release --locked --target ${{ matrix.target }}
95+
else
96+
cargo build --release --locked --target ${{ matrix.target }}
97+
fi
8398
8499
- name: Package unix artifacts
85100
if: matrix.archive == 'tar.gz'
86101
shell: bash
87102
run: |
88103
set -euo pipefail
89104
VERSION="${GITHUB_REF_NAME}"
90-
mkdir -p dist/package
105+
mkdir -p dist/package/scripts
91106
cp "target/${{ matrix.target }}/release/agentdiff${{ matrix.ext }}" dist/package/
92-
cp "target/${{ matrix.target }}/release/agentdiff-mcp${{ matrix.ext }}" dist/package/
107+
cp "target/${{ matrix.target }}/release/agentdiff-mcp${{ matrix.ext }}" dist/package/ 2>/dev/null || true
108+
cp scripts/*.py dist/package/scripts/
93109
tar -C dist/package -czf "dist/agentdiff-${VERSION}-${{ matrix.target }}.tar.gz" .
94110
95111
- name: Package windows artifacts

0 commit comments

Comments
 (0)