Skip to content

bump: v1.4.3

bump: v1.4.3 #194

Workflow file for this run

name: Build & Release
on:
push:
tags:
- "v*"
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
quality:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install frontend dependencies
run: bun install
- name: TypeScript check
run: bun run build
- name: Rust clippy
run: cd core && cargo clippy -- -D warnings
- name: Rust build
run: cd core && cargo build
build:
needs: quality
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
include:
- platform: "macos-latest"
args: "--target aarch64-apple-darwin"
name: "macOS-arm64"
- platform: "ubuntu-22.04"
args: ""
name: "Linux"
- platform: "windows-latest"
args: ""
name: "Windows"
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin' || '' }}
- name: Install dependencies (Ubuntu)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install frontend dependencies
run: bun install
- name: Build and Release
uses: tauri-apps/tauri-action@v0.6.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_DIR: core
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
projectPath: "."
tauriScript: "bun run tauri"
args: ${{ matrix.args }}
tagName: ${{ github.ref_name }}
releaseName: "Orbit ${{ github.ref_name }}"
releaseBody: "Download the installer for your platform below."
releaseDraft: false
prerelease: false
updaterJsonPreferNsis: true
- name: Build CLI binary
run: cargo build --release --bin orbit-cli --features cli --manifest-path core/Cargo.toml ${{ matrix.platform == 'macos-latest' && '--target aarch64-apple-darwin' || '' }}
- name: Rename CLI binary (Windows)
if: matrix.platform == 'windows-latest'
run: |
Copy-Item "core/target/release/orbit-cli.exe" "orbit-cli-windows-x64.exe"
- name: Rename CLI binary (Linux)
if: matrix.platform == 'ubuntu-22.04'
run: |
cp core/target/release/orbit-cli orbit-cli-linux-x64
chmod +x orbit-cli-linux-x64
- name: Rename CLI binary (macOS)
if: matrix.platform == 'macos-latest'
run: |
cp core/target/aarch64-apple-darwin/release/orbit-cli orbit-cli-macos-arm64
chmod +x orbit-cli-macos-arm64
- name: Build MCP binary
run: cargo build --release --bin orbit-mcp --features mcp --manifest-path core/Cargo.toml ${{ matrix.platform == 'macos-latest' && '--target aarch64-apple-darwin' || '' }}
- name: Rename MCP binary (Windows)
if: matrix.platform == 'windows-latest'
run: |
Copy-Item "core/target/release/orbit-mcp.exe" "orbit-mcp-windows-x64.exe"
- name: Rename MCP binary (Linux)
if: matrix.platform == 'ubuntu-22.04'
run: |
cp core/target/release/orbit-mcp orbit-mcp-linux-x64
chmod +x orbit-mcp-linux-x64
- name: Rename MCP binary (macOS)
if: matrix.platform == 'macos-latest'
run: |
cp core/target/aarch64-apple-darwin/release/orbit-mcp orbit-mcp-macos-arm64
chmod +x orbit-mcp-macos-arm64
- name: Upload CLI & MCP to Release
uses: softprops/action-gh-release@v2.6.1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
orbit-cli-*
orbit-mcp-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}