【问题标题】:How to set-up Github Actions for Xamarin apps in windows-latest VM?如何在 Windows 最新 VM 中为 Xamarin 应用程序设置 Github 操作?
【发布时间】:2021-11-22 18:49:12
【问题描述】:

在此处提供的文档中 - https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-xamarin-applications#building-xamarinios-apps

Xamain SDK 安装在 VM 中是通过此命令完成的

$VM_ASSETS/select-xamarin-sdk-v2.sh --mono=6.12 --ios=14.10

这是在macos-latest VM 中运行的。

我怎样才能在windows-latest VM for Android 应用程序中做同样的事情(告诉它安装 Xamarin SDK)(我知道 iOS 应用程序不能在 Windows VM 中构建)? 如果有人告诉我怎么做,我也会发送 PR 来更新该文档。

谢谢。

【问题讨论】:

  • 您无法在 Windows VM 中构建 iOS 应用
  • 好的,但是 Android 应用程序呢,它们是在 Windows 上构建的。它仍然需要在那里安装 Xamarin-SDK/extension 才能工作。我已经更新了这个问题,以明确我在寻找什么。有什么想法吗?

标签: windows xamarin sdk github-actions


【解决方案1】:

除非您还使用所有必要的工具将该构建代理连接到 macOS 机器,否则您根本无法做到。

相反,我建议您使用 macOS-11 代理并使用它们构建您的 iOS 应用程序。就像您链接到的文档所建议的那样。

【讨论】:

  • 但是 Android 应用程序呢,它们是在 Windows 上构建的。它仍然需要在那里安装 Xamarin-SDK/extension 才能工作。我已经更新了这个问题,以明确我在寻找什么。有什么想法吗?
  • 对于 Android 应用程序,您可以使用 Windows 虚拟机来构建它们。你不需要 select-xamarin-sdk 脚本。
猜你喜欢
  • 2020-09-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多