mirror of
https://github.com/actions/runner-images.git
synced 2026-01-08 11:30:49 +08:00
[macOS] Refactor Common.Helpers (#8924)
* [macOS] Refactor Common.Helpers * Update readme file * Remove unnecessary double quotes --------- Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
This commit is contained in:
@@ -1,22 +1,26 @@
|
||||
# Toolset JSON structure
|
||||
|
||||
## Xcode
|
||||
|
||||
- `versions` - the array of objects that will present installed Xcode versions
|
||||
- `link` property points to the place where Xcode will be located on image. `/Applications/Xcode_<link>.app`
|
||||
- `version` points to Xcode version that will be downloaded and installed
|
||||
- `symlinks` describes the list of aliases where symlinks will be created to
|
||||
- `link` property points to the place where Xcode will be located on image. `/Applications/Xcode_<link>.app`
|
||||
- `version` points to Xcode version that will be downloaded and installed
|
||||
- `symlinks` describes the list of aliases where symlinks will be created to
|
||||
- `default` - version of Xcode to set as default (should be metched with any `link` in `versions` property)
|
||||
**Example:** `"11.2"`
|
||||
|
||||
**Note:**
|
||||
|
||||
- If `version` is specified with spaces, it is considered as exact Xcode name like `12.1.1 Release Candidate`.
|
||||
- If `version` doesn't contain spaces, the latest version will be resolved with the following priority:
|
||||
- stable version like `12.1`
|
||||
- release candidate version like `12.1 Release Candidate N` (the latest N will be chosen)
|
||||
- GM version like `12.1 GM Seed N` (the latest N will be chosen)
|
||||
- beta version like `12.1 beta N` (the latest N will be chosen)
|
||||
- stable version like `12.1`
|
||||
- release candidate version like `12.1 Release Candidate N` (the latest N will be chosen)
|
||||
- GM version like `12.1 GM Seed N` (the latest N will be chosen)
|
||||
- beta version like `12.1 beta N` (the latest N will be chosen)
|
||||
|
||||
**Example:**
|
||||
```
|
||||
|
||||
```json
|
||||
"versions": [
|
||||
{ "link": "12.2", "version": "12.2.0" },
|
||||
{ "link": "11.7", "version": "11.7.0", "symlinks": ["11.7_beta"] }
|
||||
@@ -24,27 +28,26 @@
|
||||
```
|
||||
|
||||
## Xamarin
|
||||
|
||||
- `vsmac` - version of Visual Studio For Mac to install.
|
||||
**Example:** `"8.3.11.1"`
|
||||
|
||||
- `mono-versions` - the array of Mono versions to install.
|
||||
- `mono_versions` - the array of Mono versions to install.
|
||||
**Example:** `[ "6.4.0.208", "6.0.0.334" ]`
|
||||
|
||||
- `ios-versions` - the array of Xamarin iOS versions to install.
|
||||
- `ios_versions` - the array of Xamarin iOS versions to install.
|
||||
**Example:** `[ "13.6.0.12", "13.4.0.2", "13.2.0.47" ]`
|
||||
|
||||
- `mac-versions` - the array of Xamarin iOS versions to install.
|
||||
- `mac_versions` - the array of Xamarin iOS versions to install.
|
||||
**Example:** `[ "6.6.0.12", "6.4.0.2", "6.2.0.47" ]`
|
||||
|
||||
- `android-versions` - the array of Xamarin iOS versions to install.
|
||||
- `android_versions` - the array of Xamarin iOS versions to install.
|
||||
**Example:** `[ "10.0.6.2", "9.4.1.0" ]`
|
||||
|
||||
**Note:** More than one version of SDK with the same major.minor version should not be installed. It applies to `mono-versions`, `ios-versions`, `mac-versions`, `android-versions` fields.
|
||||
**Note:** More than one version of SDK with the same major.minor version should not be installed. It applies to `mono_versions`, `ios_versions`, `mac_versions`, `android_versions` fields.
|
||||
For example, if Mono `6.4.0.100` is installed and Mono `6.4.1.2` was released recently, we should not install both, just update `6.4.0.100` -> `6.4.1.2`. Only major and minor version changes can break backward compatibility so it is safe.
|
||||
|
||||
<br>
|
||||
|
||||
- `bundle-default` - the symlink of the bundle that will be set as default on the image.
|
||||
- `bundle_default` - the symlink of the bundle that will be set as default on the image.
|
||||
This bundle will be set as `Current`.
|
||||
**Example:** `"5_12_0"` (set bundle with symlink `5_12_0` as default)
|
||||
**Example:** `"latest"` (set latest bundle as default)
|
||||
@@ -59,9 +62,9 @@ The first bundle in the list will be as `Latest`.
|
||||
- `mac` - version of Xamarin.Mac that will be set in this bundle. Only two numbers (`major.minor`) should be specified.
|
||||
- `android` - version of Xamarin.Android that will be set in this bundle. Only two numbers (`major.minor`) should be specified.
|
||||
|
||||
**Example:**
|
||||
|
||||
**Example:**
|
||||
```
|
||||
```json
|
||||
[
|
||||
{
|
||||
"symlink": "6_4_2",
|
||||
@@ -81,19 +84,20 @@ The first bundle in the list will be as `Latest`.
|
||||
```
|
||||
|
||||
## Android
|
||||
|
||||
- `platform-list` - the array of android platforms to install.
|
||||
**Example:** `[ "android-29", "android-28", "android-27" ]`
|
||||
|
||||
- `build-tools` - the array of android build tools to install.
|
||||
**Example:** `[ "29.0.2", "29.0.1", "29.0.0", "28.0.3" ]`
|
||||
|
||||
- `extra-list` - the array of android extra items to install.
|
||||
- `extras` - the array of android extra items to install.
|
||||
**Example:** `[ "google;google_play_services", "intel;Hardware_Accelerated_Execution_Manager" ]`
|
||||
|
||||
- `addon-list` - the array of android addons to install.
|
||||
- `addons` - the array of android addons to install.
|
||||
**Example:** `[ "addon-google_apis-google-24", "addon-google_apis-google-23" ]`
|
||||
|
||||
## Toolset JSON validation
|
||||
|
||||
# Toolset JSON validation
|
||||
File `Toolset.Tests.ps1` contains PowerShell [Pester](https://github.com/Pester/Pester) tests that validate JSON toolset files.
|
||||
Type `Invoke-Pester` in the current folder in PowerShell to run tests.
|
||||
Type `Invoke-Pester` in the current folder in PowerShell to run tests.
|
||||
|
||||
Reference in New Issue
Block a user