-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
58 lines (58 loc) · 2.63 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Setup Swift environment for macOS, Linux and Windows
description: Setup Swift environment by optionally downloading and adding it to the PATH.
author: Soumya Ranjan Mahunt
inputs:
swift-version:
description: >-
Swift version to configure, accepts valid semantic version, "latest", "current".
Configures latest version for open ended semantic version provided,
i.e. configures 5.1.1 for 5.1, configures 4.2.4 for 4.
Provide exact semantic version to configure the same version,
i.e. configures 5.1 for 5.1.0, configures 5.0 for 5.0.0.
Provide toolchain download URL to configure custom toolchains,
i.e. https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.10-SNAPSHOT-2024-03-30-a/swift-wasm-5.10-SNAPSHOT-2024-03-30-a-ubuntu22.04_x86_64.tar.gz,
https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.10-SNAPSHOT-2024-03-30-a/swift-wasm-5.10-SNAPSHOT-2024-03-30-a-macos_x86_64.pkg
required: false
default: 'latest'
development:
description: >-
Whether to include development snapshots matching provided version,
not required if provided version has no stable release.
required: false
default: 'false'
check-latest:
description: >-
Whether to use latest Swift toolchains available in swift.org,
instead of using the snapshot this action was tested with.
Enabling this option may break this action,
use cautiously and disable if any issue.
Specific git ref for apple/swift-org-website repo can be provided,
to use toolchains published in that ref.
required: false
default: 'false'
dry-run:
description: >-
Whether to only get the toolchain data based on version input and skip intallation.
Can be used with actions that perform custom installations, i.e. using docker tag in Linux.
required: false
default: 'false'
cache-snapshot:
description: >-
Whether to cache downloaded toolchain snapshots. Enabled by default,
can be disabled in case of storage constraints.
required: false
default: 'true'
visual-studio-components:
description: >-
Semi-colon separated list of components to include in the Visual Studio installation along with required ones.
i.e. Microsoft.VisualStudio.Component.VC.ATL;Microsoft.VisualStudio.Component.VC.CMake.Project;Microsoft.VisualStudio.Component.Windows10SDK
required: false
default: ''
outputs:
swift-version:
description: The actual Swift version that was configured.
toolchain:
description: JSON formatted toolchain snapshot metadata that was configured.
runs:
using: node20
main: dist/index.js