-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
96 lines (86 loc) · 3.26 KB
/
action.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: 'Setup MacPorts'
description: >-
Configure and install MacPorts on a Mac OS runner.
branding:
icon: box
color: blue
inputs:
parameters:
description: |
Pathname to a configuration file for the GHA-INSTALL-MACPORTS
action. When no pathname is provided, the configuration is
expected to be found under
.github/parameters/gha-install-macports.yaml
It is however no error when this file is not present.
The configuration file is in YAML and has the following format:
version: '2.9.3'
The MacPorts version to install.
prefix: '/opt/local'
The installation prefix to install MacPortd to.
Currently the only supported value is '/opt/local'.
variants.select: []
The list of selected variants in the global variants
configuration.
See Also variants.conf(5).
variants.deselect: []
The list of deselected variants in the global variants
configuration.
See Also: variants.conf(5).
sources: ['rsync://rsync.macports.org/macports/release/tarballs/ports.tar']
The list of source locations for port definitions. The first
entry of the list is marked with default.
See Also: sources.conf(5)
ports: []
The list of additional ports to install. Each term of the
list is a dictionart with the mandatory 'name' holding the name
of the port to install, optional key 'select' for the list of
selected variants for this port, and the optional 'key'
deselect for the list of deselected variants for this port.
required: true
default: ':no-value'
outputs:
package:
value: ${{ steps.configure-macports.outputs.package }}
description: >-
The URL of the package used for the MacPorts installation.
prefix:
value: ${{ steps.configure-macports.outputs.prefix }}
description: >-
The installation prefix for the MacPorts installation.
version:
value: ${{ steps.configure-macports.outputs.version }}
description: >-
The MacPorts version installed.
runs:
using: 'composite'
steps:
- name: 'Identify self'
shell: sh
run: |
${{ github.action_path }}/identify_self "${{ github.action_path }}"
- name: 'Validate Inputs'
shell: sh
run: |
${{ github.action_path }}/validate_configuration "${{ inputs.parameters }}"
- name: 'Configure MacPorts'
id: configure-macports
shell: sh
env:
TOPLEVELDIR: ${{ github.action_path }}
run: |
${{ github.action_path }}/configure_macports "${{ inputs.parameters }}"
- name: 'Cache MacPorts Installation'
id: cache-macports
uses: actions/cache@v4
with:
path: ${{ steps.configure-macports.outputs.prefix }}
key: install-macports-${{ steps.configure-macports.outputs.cache-key }}
- name: 'Install MacPorts'
if: steps.cache-macports.outputs.cache-hit != 'true'
shell: sh
run: |
${{ github.action_path }}/install_macports
env:
TOPLEVELDIR: ${{ github.action_path }}
macports_prefix: ${{ steps.configure-macports.outputs.prefix }}
macports_version: ${{ steps.configure-macports.outputs.version }}