Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

1.8 KB
Raw Blame
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---

agents:
  queue: mac

env:
  IMAGE_ID: $IMAGE_ID

steps:
  - label: ":mac: Build, sign, notarize harper-desktop for macOS"
    key: build-desktop
    command: .buildkite/commands/build-desktop.sh
    plugins: [$CI_TOOLKIT_PLUGIN, $NVM_PLUGIN]
    artifact_paths:
      # Branch/PR builds produce `aarch64-apple-darwin` artifacts; master and
      # tag builds produce `universal-apple-darwin`. Glob both.
      - harper-desktop/src-tauri/target/*-apple-darwin/release/bundle/dmg/*.dmg
      - harper-desktop/src-tauri/target/*-apple-darwin/release/bundle/macos/*.app.tar.gz
      - harper-desktop/src-tauri/target/*-apple-darwin/release/bundle/macos/*.app.tar.gz.sig
    notify:
      - github_commit_status:
          context: "Build, sign, notarize harper-desktop for macOS"

  - label: ":windows: Build and sign harper-desktop for Windows"
    key: build-desktop-windows
    agents:
      queue: windows
    command: powershell -NoProfile -File .buildkite/commands/build-desktop-windows.ps1
    plugins: [$CI_TOOLKIT_PLUGIN, $NVM_PLUGIN]
    artifact_paths:
      - harper-desktop/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis/*-setup.exe
    notify:
      - github_commit_status:
          context: "Build and sign harper-desktop for Windows"

  - label: ":github: Upload harper-desktop release for Windows"
    key: release-desktop-windows
    if: build.tag =~ /^v[0-9]+/
    depends_on:
      - build-desktop-windows
      # Let the existing macOS release creator finish before looking for a draft.
      - step: build-desktop
        allow_failure: true
    command: bash .buildkite/commands/release-desktop-windows.sh
    plugins: [$NVM_PLUGIN]
    notify:
      - github_commit_status:
          context: "Upload harper-desktop release for Windows"