mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-12 01:45:14 +02:00
Stop producing the omnigraph-macos-x86_64 archive in both the stable and edge release workflows. The macos-15-intel runner build was the slowest of the matrix and Apple Silicon is now the default Mac developer target. - release.yml + release-edge.yml: drop the macos-15-intel matrix entry - install.sh: drop the Darwin/x86_64 case so Intel Macs get a clear "no prebuilt binary" error instead of attempting an absent download - update-homebrew-formula.sh: drop the MACOS_X86_* variables and emit an arm64-only Homebrew formula. The on_macos block now declares `depends_on arch: :arm64` so Intel `brew install` fails fast with a clear architecture message instead of installing an arm64 binary that errors at exec time. Linux x86_64 build is unaffected. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
95 lines
2.5 KiB
YAML
95 lines
2.5 KiB
YAML
name: Release Edge
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- "**/*.md"
|
|
- "**/*.mdx"
|
|
- "**/*.txt"
|
|
- "**/*.rst"
|
|
- "**/*.adoc"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
prepare_edge_release:
|
|
name: Prepare edge release
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout source
|
|
uses: actions/checkout@v5.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Force-update edge tag
|
|
run: |
|
|
git tag -f edge "$GITHUB_SHA"
|
|
git push origin refs/tags/edge --force
|
|
|
|
build_release:
|
|
name: Build edge ${{ matrix.asset_name }}
|
|
needs: prepare_edge_release
|
|
runs-on: ${{ matrix.runner }}
|
|
permissions:
|
|
contents: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- runner: ubuntu-latest
|
|
asset_name: omnigraph-linux-x86_64
|
|
- runner: macos-14
|
|
asset_name: omnigraph-macos-arm64
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
steps:
|
|
- name: Checkout source
|
|
uses: actions/checkout@v5.0.1
|
|
|
|
- name: Install Linux dependencies
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y protobuf-compiler libprotobuf-dev
|
|
|
|
- name: Install macOS dependencies
|
|
if: runner.os == 'macOS'
|
|
run: brew install protobuf
|
|
|
|
- name: Install Rust stable
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Cache Rust build data
|
|
uses: Swatinem/rust-cache@v2
|
|
with:
|
|
workspaces: |
|
|
. -> target
|
|
|
|
- name: Build release binaries
|
|
run: cargo build --release --locked -p omnigraph-cli -p omnigraph-server
|
|
|
|
- name: Package release archive
|
|
run: |
|
|
mkdir -p release
|
|
install -m 0755 target/release/omnigraph release/omnigraph
|
|
install -m 0755 target/release/omnigraph-server release/omnigraph-server
|
|
tar -C release -czf "${{ matrix.asset_name }}.tar.gz" omnigraph omnigraph-server
|
|
shasum -a 256 "${{ matrix.asset_name }}.tar.gz" > "${{ matrix.asset_name }}.sha256"
|
|
|
|
- name: Publish edge release assets
|
|
uses: softprops/action-gh-release@v2.5.0
|
|
with:
|
|
tag_name: edge
|
|
name: Edge
|
|
prerelease: true
|
|
make_latest: false
|
|
body: |
|
|
Rolling prerelease from `${{ github.sha }}`.
|
|
files: |
|
|
${{ matrix.asset_name }}.tar.gz
|
|
${{ matrix.asset_name }}.sha256
|