v0.10.2 #23
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Release | |
| on: | |
| release: | |
| types: [created] | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Release tag to build for (e.g., v0.1.0)' | |
| required: false | |
| type: string | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-daemon: | |
| name: Build loom-daemon | |
| runs-on: macos-14 # Apple Silicon runner | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: aarch64-apple-darwin,x86_64-apple-darwin | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: | | |
| . | |
| - name: Ensure both Apple targets installed | |
| run: | | |
| rustup target add aarch64-apple-darwin | |
| rustup target add x86_64-apple-darwin | |
| - name: Build daemon (ARM64) | |
| run: | | |
| cargo build --package loom-daemon --release --target aarch64-apple-darwin | |
| mkdir -p target/release | |
| cp target/aarch64-apple-darwin/release/loom-daemon target/release/loom-daemon-aarch64-apple-darwin | |
| - name: Build daemon (x86_64) | |
| run: | | |
| cargo build --package loom-daemon --release --target x86_64-apple-darwin | |
| mkdir -p target/release | |
| cp target/x86_64-apple-darwin/release/loom-daemon target/release/loom-daemon-x86_64-apple-darwin || true | |
| - name: List build artifacts | |
| run: | | |
| echo "=== Daemon binaries ===" | |
| ls -la target/release/loom-daemon-* || true | |
| - name: Upload release assets | |
| if: github.event_name == 'release' | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| files: | | |
| target/release/loom-daemon-aarch64-apple-darwin | |
| target/release/loom-daemon-x86_64-apple-darwin | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload artifacts (for manual runs) | |
| if: github.event_name == 'workflow_dispatch' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: loom-daemon-binaries | |
| path: | | |
| target/release/loom-daemon-aarch64-apple-darwin | |
| target/release/loom-daemon-x86_64-apple-darwin | |
| retention-days: 7 |