Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release NPM 的 CI 需要更新参数以兼容目前的 macos-14 #191

Closed
ykla opened this issue May 7, 2024 · 1 comment
Closed

Release NPM 的 CI 需要更新参数以兼容目前的 macos-14 #191

ykla opened this issue May 7, 2024 · 1 comment

Comments

@ykla
Copy link

ykla commented May 7, 2024

目前的问题:

root@ykla-virtual-machine:~# uname -ra
Linux ykla-virtual-machine 5.15.0-105-generic #115~20.04.1-Ubuntu SMP Mon Apr 15 17:33:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
root@ykla-virtual-machine:~# yarn add autocorrect-node 
yarn add v1.22.19
info No lockfile found.
[1/4] Resolving packages...
Couldn't find any versions for "autocorrect-node-darwin-x64" that matches "2.9.1"
? Please choose a version of "autocorrect-node-darwin-x64" from this list: (Use arrow keys)
❯ 2.9.0 
  2.8.4 
  2.8.3 
  2.8.2 
  2.8.1 
  2.8.0 
  2.7.2 
  2.7.1 
  2.7.0 
  2.6.2 
  2.6.1 
  2.6.0 
  2.5.8 
  2.5.5 
  2.5.3 
  2.5.2 
  2.5.1 
  2.5.0 
  2.4.3 
  2.4.0 
  2.3.2 
  2.3.1 
  2.3.0 
  2.2.0 
  2.1.1

经过搜索,应该和 yisibl/resvg-js#320 是一个问题。

现在的 CI 参数是 macos-latest,已经指向了 macOS 14 Arm64。

          - host: macos-latest
            target: x86_64-apple-darwin

参考日志输出:https://github.com/huacnlee/autocorrect/actions/runs/8984303050/job/24675863335

2024-05-07T11:14:50.469Z napi:build Platform: darwin
2024-05-07T11:14:50.470Z napi:build Platform name: .darwin-arm64
2024-05-07T11:14:50.470Z napi:build Write binary content to [autocorrect-node.darwin-arm64.node]

实际上生成了 autocorrect-node.darwin-arm64.node 而非 x64。

所以 NPM 的 release CI 可能需要加参数 --target x86_64-apple-darwin。我不会矩阵,而且不知道为什么这个项目的 Github action 默认就是一直在报错,无法通过 https://rhysd.github.io/actionlint/ 语法验证。麻烦您加参数跑一下看看。

see also actions/runner-images#9741. 或者可能把系统换成 macos-14-large……

@ykla ykla changed the title Couldn't find any versions for "autocorrect-node-darwin-x64" that matches "2.9.1" NPM 的 release CI 可能需要加参数 --target x86_64-apple-darwin May 7, 2024
@ykla ykla changed the title NPM 的 release CI 可能需要加参数 --target x86_64-apple-darwin NPM 的 release CI 需要更新参数以兼容目前的 macos-14 May 7, 2024
@ykla ykla changed the title NPM 的 release CI 需要更新参数以兼容目前的 macos-14 Release NPM 的 CI 需要更新参数以兼容目前的 macos-14 May 7, 2024
@huacnlee
Copy link
Owner

huacnlee commented May 8, 2024

谢谢提醒,已修复,@ykla 你试试我新打包的 v2.9.2

@ykla ykla closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants