Skip to content

Add cross-platform GitHub Actions build workflow - #5

Merged
frogshead merged 1 commit into
mainfrom
feature/cross-platform-builds
Sep 6, 2025
Merged

Add cross-platform GitHub Actions build workflow#5
frogshead merged 1 commit into
mainfrom
feature/cross-platform-builds

Conversation

@frogshead

Copy link
Copy Markdown
Owner

Summary

Add comprehensive CI/CD pipeline for building executables across all major platforms using GitHub Actions matrix builds.

Supported Platforms

  • Linux x64 (x86_64-unknown-linux-gnu)
  • Linux ARM64 (aarch64-unknown-linux-gnu)
  • macOS x64 (x86_64-apple-darwin)
  • macOS ARM64 (aarch64-apple-darwin)
  • Windows x64 (x86_64-pc-windows-msvc)

Features

  • Matrix builds: Parallel compilation across all platforms
  • Cross-compilation: Proper toolchain setup for ARM64 Linux builds
  • Caching: Cargo registry caching for faster subsequent builds
  • Binary optimization: Automatic stripping of debug symbols
  • Artifact management: 30-day retention of build artifacts
  • Auto-releases: Automatic GitHub releases for git tags
  • Manual dispatch: Ability to trigger builds manually

Workflow Triggers

  • 🔄 Push to main branch
  • 🔄 Pull requests to main
  • 🏷️ Git tags starting with v* (creates releases)
  • 🖱️ Manual workflow dispatch

Testing

  • ✅ Tested ARM64 macOS cross-compilation locally
  • ✅ Workflow validates YAML syntax
  • ✅ Uses latest GitHub Actions best practices

Benefits

  • User convenience: Pre-built binaries for all platforms
  • Release automation: Tags automatically create releases with binaries
  • CI validation: Ensures builds work across all targets
  • Distribution ready: Optimized, stripped binaries ready for use

🤖 Generated with Claude Code

Create comprehensive CI/CD pipeline that builds executables for all major platforms:

**Supported Platforms:**
- Linux x64 (x86_64-unknown-linux-gnu)
- Linux ARM64 (aarch64-unknown-linux-gnu)
- macOS x64 (x86_64-apple-darwin)
- macOS ARM64 (aarch64-apple-darwin)
- Windows x64 (x86_64-pc-windows-msvc)

**Features:**
- Matrix build strategy for parallel compilation
- Cross-compilation setup with proper toolchains
- Caching for faster builds
- Binary stripping for smaller executables
- Artifact uploads with 30-day retention
- Automatic GitHub releases for tagged versions
- Manual workflow dispatch support

**Triggers:**
- Push to main branch
- Pull requests to main
- Git tags (creates releases)
- Manual workflow dispatch

Tested locally with ARM64 macOS cross-compilation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@frogshead
frogshead merged commit ab543c5 into main Sep 6, 2025
1 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant