llmfit/.github/workflows/release-desktop.yml
dependabot[bot] c814748ba5
chore(deps): bump actions/checkout from 6.0.2 to 7.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 7.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v6.0.2...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-04 05:32:50 +00:00

85 lines
2.4 KiB
YAML

name: Release Desktop (macOS)
on:
push:
tags:
- "v*-mac"
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
build-desktop:
strategy:
matrix:
include:
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install Tauri CLI
run: cargo install tauri-cli --version "^2"
- name: Build Tauri app bundle
run: cargo tauri build --target ${{ matrix.target }} --bundles app
working-directory: llmfit-desktop
- name: Package .app bundle
shell: bash
run: |
TAG="${GITHUB_REF_NAME}"
# Search both possible target locations
for BASE in "target" "llmfit-desktop/target"; do
APP=$(find "${BASE}/${{ matrix.target }}/release/bundle" -name '*.app' -maxdepth 3 2>/dev/null | head -1)
[ -n "$APP" ] && break
done
if [ -z "$APP" ]; then
echo "::error::No .app bundle found"
find target/ llmfit-desktop/target/ -type d -name 'bundle' 2>/dev/null || true
exit 1
fi
echo "Found app bundle: $APP"
DEST="llmfit-desktop-${TAG}-${{ matrix.target }}.app.tar.gz"
cd "$(dirname "$APP")"
tar czf "/tmp/${DEST}" "$(basename "$APP")"
echo "DESKTOP_ASSET=${DEST}" >> "$GITHUB_ENV"
echo "DESKTOP_ASSET_PATH=/tmp/${DEST}" >> "$GITHUB_ENV"
- name: Upload artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ env.DESKTOP_ASSET }}
path: ${{ env.DESKTOP_ASSET_PATH }}
release:
needs: build-desktop
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: artifacts
- name: Create GitHub Release
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1
with:
generate_release_notes: true
files: artifacts/**/*.tar.gz