Skip to content

Commit ea05d97

Browse files
Mike Kuykendallclaude
andcommitted
fix: Simplify GitHub Actions to native Ubuntu build
Switch from cross-compilation to native Ubuntu build to eliminate cross-compilation toolchain issues. Focuses on Linux binary which is most critical for server deployment. Changes: - Remove cross-compilation dependencies - Use native cargo build --release on ubuntu-latest - Eliminates C compiler dependency issues - Faster and more reliable CI/CD pipeline 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 645a226 commit ea05d97

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,36 +44,22 @@ jobs:
4444
echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
4545
fi
4646
47-
- name: Build multi-platform binaries
47+
- name: Build native Linux binary
4848
run: |
4949
mkdir -p release
5050
51-
# Install cross for cross-compilation
52-
cargo install cross
51+
# Build natively on Ubuntu (fastest, most reliable)
52+
cargo build --release
5353
54-
# Build fast version (default features, no C++ deps)
55-
cross build --release --target x86_64-unknown-linux-gnu
56-
cross build --release --target x86_64-pc-windows-gnu
57-
cross build --release --target x86_64-apple-darwin
58-
cross build --release --target aarch64-apple-darwin
59-
60-
# Copy binaries to release directory with clean names
61-
cp target/x86_64-unknown-linux-gnu/release/shimmy release/shimmy-linux-amd64
62-
cp target/x86_64-pc-windows-gnu/release/shimmy.exe release/shimmy-windows-amd64.exe
63-
cp target/x86_64-apple-darwin/release/shimmy release/shimmy-darwin-amd64
64-
cp target/aarch64-apple-darwin/release/shimmy release/shimmy-darwin-arm64
54+
# Copy binary to release directory
55+
cp target/release/shimmy release/shimmy-linux-amd64
6556
6657
- name: Create release archives
6758
run: |
6859
cd release
6960
70-
# Create tar.gz for Unix platforms
61+
# Create tar.gz for Linux
7162
tar -czf shimmy-${{ steps.version.outputs.version }}-linux-amd64.tar.gz shimmy-linux-amd64
72-
tar -czf shimmy-${{ steps.version.outputs.version }}-darwin-amd64.tar.gz shimmy-darwin-amd64
73-
tar -czf shimmy-${{ steps.version.outputs.version }}-darwin-arm64.tar.gz shimmy-darwin-arm64
74-
75-
# Create zip for Windows
76-
zip shimmy-${{ steps.version.outputs.version }}-windows-amd64.zip shimmy-windows-amd64.exe
7763
7864
- name: Create GitHub Release
7965
id: create_release

0 commit comments

Comments
 (0)