ci: select macOS 26 SDK and verify release builds safely
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
"advantage": "your Mac decodes the speech, and during dictation the network is closed by a switch in the code rather than a promise in the text.",
|
||||
"better": "The switch sits inside the recognition library and returns to its place even when a download fails. Documentation does not prove that: a script pins the set of networking symbols in the built binary and asks the kernel whether the running app holds a single socket.",
|
||||
"how": "Press the key, say your sentence, press again. The text lands where the cursor was blinking.\n\nA glass drop sits at the bottom of the screen the whole time. While you are silent it stays small. Start talking and a wave runs inside it: that is the answer to «can it hear me».\n\n\n\nPoint at it with the mouse and the drop opens into a row of buttons: record, prompt, translate, language, history, settings. The language switches right there, a second before you speak — no need to walk to the settings for it.\n\n\n\nIf pasting did not work, nothing is lost: the same plate opens into a panel and you take the text from there.\n\n",
|
||||
"quick_intro": "Download the [macOS DMG](https://github.com/zarubinvibe/iriz/releases/latest/download/iriz-macos-arm64.dmg), open it, and drag iriz into Applications. This build needs Apple Silicon and macOS 14 or newer. No Xcode or Terminal is needed.\n\nOpen iriz and choose Download and install Parakeet in onboarding (about 500 MB). Grant the permissions in the following steps. Wait for readiness, focus a text field, and try your dictation key.\n\n[Installation, model recovery and updates](docs/DOWNLOAD.md). To build from source instead, install Xcode with Swift 6 and use one of the paths below.",
|
||||
"quick_intro": "Download the [macOS DMG](https://github.com/zarubinvibe/iriz/releases/latest/download/iriz-macos-arm64.dmg), open it, and drag iriz into Applications. This build needs Apple Silicon and macOS 14 or newer. No Xcode or Terminal is needed.\n\nOpen iriz and choose Download and install Parakeet in onboarding (about 500 MB). Grant the permissions in the following steps. Wait for readiness, focus a text field, and try your dictation key.\n\n[Installation, model recovery and updates](docs/DOWNLOAD.md). To build from source instead, install Xcode 26 or newer with the macOS 26 SDK and Swift 6 and use one of the paths below.",
|
||||
"quick_extra": "Without Git, download [the source ZIP](https://github.com/zarubinvibe/iriz/archive/refs/heads/main.zip), unpack it and run the same installer there. Or open the project in Claude Code and run `/iriz-setup` for a guided install. It asks before installing.",
|
||||
"quick_result": "the installer says what this is, looks at what your machine is missing, runs the tree selfcheck, and names the next step. It installs nothing until you ask.",
|
||||
"compare": [
|
||||
@@ -123,7 +123,7 @@
|
||||
"advantage": "речь разбирает твой Мак, и во время диктовки сеть закрыта рубильником в коде, а не обещанием в тексте.",
|
||||
"better": "Рубильник стоит внутри библиотеки распознавания и возвращается на место даже когда загрузка падает. Проверяет это не документация: скрипт пинует набор сетевых символов в собранном бинарнике и спрашивает у ядра, есть ли у работающего приложения хоть один сокет.",
|
||||
"how": "Нажимаешь клавишу, говоришь фразу, нажимаешь еще раз. Текст встает туда, где мигал курсор.\n\nВнизу экрана все это время висит стеклянная капля. Пока ты молчишь, она маленькая. Заговоришь — внутри бежит волна: это и есть ответ на вопрос «слышит ли меня».\n\n\n\nНаведи на нее мышь — капля раскроется в ряд кнопок: запись, промпт, перевод, язык, история, настройки. Язык переключается здесь же, за секунду до того, как заговорить, и ходить за этим в настройки незачем.\n\n\n\nЕсли вставить не удалось, ничего не потеряно: та же плашка раскроется в панель, и текст можно забрать оттуда.\n\n",
|
||||
"quick_intro": "[Скачай DMG для macOS](https://github.com/zarubinvibe/iriz/releases/latest/download/iriz-macos-arm64.dmg), открой и перетащи iriz в Applications. Нужен Мак с Apple Silicon на macOS 14 или новее. Xcode и терминал не нужны.\n\nОткрой iriz и нажми «Скачать и установить Parakeet» в знакомстве. На следующих шагах выдай разрешения. Загрузка займет около 500 МБ. Дождись готовности, поставь курсор в текстовое поле и попробуй клавишу диктовки.\n\n[Установка, восстановление модели и обновления](docs/DOWNLOAD.ru.md). Для сборки из исходников нужен Xcode со Swift 6. Ниже команды и другие способы установки.",
|
||||
"quick_intro": "[Скачай DMG для macOS](https://github.com/zarubinvibe/iriz/releases/latest/download/iriz-macos-arm64.dmg), открой и перетащи iriz в Applications. Нужен Мак с Apple Silicon на macOS 14 или новее. Xcode и терминал не нужны.\n\nОткрой iriz и нажми «Скачать и установить Parakeet» в знакомстве. На следующих шагах выдай разрешения. Загрузка займет около 500 МБ. Дождись готовности, поставь курсор в текстовое поле и попробуй клавишу диктовки.\n\n[Установка, восстановление модели и обновления](docs/DOWNLOAD.ru.md). Для сборки из исходников нужен Xcode 26 или новее с macOS 26 SDK и Swift 6. Ниже команды и другие способы установки.",
|
||||
"quick_extra": "Нет Git? Скачай [ZIP с исходниками](https://github.com/zarubinvibe/iriz/archive/refs/heads/main.zip), распакуй и запусти в нем тот же установщик. Или открой проект в Claude Code и запусти `/iriz-setup`: агент проведет установку по шагам и спросит перед изменениями.",
|
||||
"quick_result": "установщик объясняет, что это, смотрит, чего не хватает на машине, гоняет самопроверку дерева и называет следующий шаг. Ничего не ставит, пока ты не попросишь.",
|
||||
"compare": [
|
||||
@@ -225,7 +225,7 @@
|
||||
"advantage": "识别在你自己的 Mac 上完成,口述期间网络由代码里的开关关闭,而不是靠文字承诺。",
|
||||
"better": "开关叫 `DownloadUtils.enforceOffline`,位置在识别库内部,连下载失败的时候也会自己归位。光有文档不算数:自检脚本盯住编译好的二进制里那一组网络符号,再去问系统,运行中的应用手上有没有一个套接字。",
|
||||
"how": "按键,说一句话,再按一下。文字会落在光标闪烁的地方。\n\n这段时间里,屏幕下方一直有一颗玻璃水滴。你不说话时它很小。一开口,里面就有声波流动:这就是“它有没有听见我”的答案。\n\n\n\n把鼠标移上去,水滴会展开成一排按钮:录音、提示词、翻译、语言、历史、设置。语言就在这里切换,开口前一秒就能换,不用专门去设置里找。\n\n\n\n如果没能粘贴上,什么也不会丢:同一个浮窗会展开成面板,文字从那里拿走。\n\n",
|
||||
"quick_intro": "[下载 macOS DMG](https://github.com/zarubinvibe/iriz/releases/latest/download/iriz-macos-arm64.dmg),打开后将 iriz 拖入 Applications。需要 Apple Silicon Mac 和 macOS 14 或更新版本,不需要 Xcode 或终端。\n\n打开 iriz,在引导中点击「下载并安装 Parakeet」(约 500 MB),然后按后续步骤授予权限。等模型就绪,将光标放入文本框,再试用听写快捷键。\n\n[安装、恢复模型和更新](docs/DOWNLOAD.zh.md)。从源码构建另需 Xcode 和 Swift 6,命令及其他安装方式见下方。",
|
||||
"quick_intro": "[下载 macOS DMG](https://github.com/zarubinvibe/iriz/releases/latest/download/iriz-macos-arm64.dmg),打开后将 iriz 拖入 Applications。需要 Apple Silicon Mac 和 macOS 14 或更新版本,不需要 Xcode 或终端。\n\n打开 iriz,在引导中点击「下载并安装 Parakeet」(约 500 MB),然后按后续步骤授予权限。等模型就绪,将光标放入文本框,再试用听写快捷键。\n\n[安装、恢复模型和更新](docs/DOWNLOAD.zh.md)。从源码构建另需 Xcode 26 或更新版本(含 macOS 26 SDK 和 Swift 6),命令及其他安装方式见下方。",
|
||||
"quick_extra": "没有 Git?下载[源码 ZIP](https://github.com/zarubinvibe/iriz/archive/refs/heads/main.zip),解压后运行同一个安装脚本。也可以在 Claude Code 中打开项目并运行 `/iriz-setup`,让智能体逐步引导安装,每次安装前都会先询问。",
|
||||
"quick_result": "安装脚本先说清楚这是什么,再看你的机器缺什么,跑一遍 `bash scripts/selfcheck.sh --selftest`,最后告诉你下一步该做什么。你不开口,它什么都不装。真要构建,加一个参数:`bash install.sh --build`。",
|
||||
"compare": [
|
||||
|
||||
@@ -2,6 +2,11 @@ name: macOS release draft
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
build_only:
|
||||
description: Build, test and upload artifacts without creating a release draft
|
||||
type: boolean
|
||||
default: false
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
@@ -28,7 +33,8 @@ jobs:
|
||||
permissions:
|
||||
contents: read
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer
|
||||
# macOS 26 APIs need the newer SDK even with a macOS 14 deployment target.
|
||||
DEVELOPER_DIR: /Applications/Xcode_26.3.app/Contents/Developer
|
||||
SMLTLK_SIGN_IDENTITY: '-'
|
||||
IRIZ_NOTARY_PROFILE: ''
|
||||
IRIZ_DMG_HEADLESS: '1'
|
||||
@@ -43,7 +49,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Validate version and Swift 6 toolchain
|
||||
- name: Validate version, Xcode 26 and macOS SDK
|
||||
id: version
|
||||
run: |
|
||||
set -euo pipefail
|
||||
@@ -54,10 +60,16 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
[[ "$(uname -m)" == arm64 ]] || { echo 'An ARM64 runner is required.'; exit 1; }
|
||||
xcodebuild -version
|
||||
xcode_version=$(xcodebuild -version)
|
||||
printf '%s\n' "$xcode_version"
|
||||
[[ "$xcode_version" == 'Xcode 26.'* ]] || { echo 'Xcode 26 is required.'; exit 1; }
|
||||
swift_version=$(xcrun swift --version)
|
||||
printf '%s\n' "$swift_version"
|
||||
[[ "$swift_version" == *'Swift version 6.'* ]] || { echo 'Swift 6 is required.'; exit 1; }
|
||||
sdk_version=$(xcrun --sdk macosx --show-sdk-version)
|
||||
printf 'macOS SDK: %s\n' "$sdk_version"
|
||||
[[ "$sdk_version" =~ ^([0-9]+)(\.[0-9]+){0,2}$ ]] && (( 10#${BASH_REMATCH[1]} >= 26 )) \
|
||||
|| { echo 'macOS SDK 26 or newer is required.'; exit 1; }
|
||||
printf 'version=%s\n' "$version" >> "$GITHUB_OUTPUT"
|
||||
printf 'source_sha=%s\n' "$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
@@ -104,7 +116,7 @@ jobs:
|
||||
|
||||
draft:
|
||||
needs: build
|
||||
if: github.repository == 'zarubinvibe/iriz' && github.event.repository.visibility == 'public'
|
||||
if: github.repository == 'zarubinvibe/iriz' && github.event.repository.visibility == 'public' && !(github.event_name == 'workflow_dispatch' && inputs.build_only)
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 15
|
||||
# No checkout or repository scripts run with this write token.
|
||||
|
||||
Reference in New Issue
Block a user