@@ -74,14 +74,14 @@ jobs:
74
74
platform : ' _remote_background_indep_tcp _remote_at_indep_tcp'
75
75
# macos
76
76
- name : ' macos 1/5'
77
- os : ' macos-11 '
78
- python-version : ' 3.7 '
77
+ os : ' macos-latest '
78
+ python-version : ' 3.9 '
79
79
test-base : ' tests/f'
80
80
chunk : ' 1/5'
81
81
platform : ' _local_background*'
82
82
- name : ' macos 2/5'
83
- os : ' macos-11 '
84
- python-version : ' 3.7 '
83
+ os : ' macos-latest '
84
+ python-version : ' 3.9 '
85
85
test-base : ' tests/f'
86
86
chunk : ' 2/5'
87
87
platform : ' _local_background*'
@@ -103,6 +103,29 @@ jobs:
103
103
with :
104
104
python-version : ${{ matrix.python-version }}
105
105
106
+ - name : Create global config
107
+ run : |
108
+ CONF_PATH="$HOME/.cylc/flow/8"
109
+ mkdir -p "$CONF_PATH"
110
+ touch "$CONF_PATH/global.cylc"
111
+ ln -s "$CONF_PATH/global.cylc" "$CONF_PATH/global-tests.cylc"
112
+ echo "GLOBAL_CFG_PATH=${CONF_PATH}/global.cylc" >> "$GITHUB_ENV"
113
+
114
+ - name : Patch DNS
115
+ uses : cylc/release-actions/patch-dns@v1
116
+
117
+ - name : Add localhost entries to global config
118
+ if : startsWith(runner.os, 'macos')
119
+ run : |
120
+ cat >> "$GLOBAL_CFG_PATH" <<__HERE__
121
+ [platforms]
122
+ [[localhost, $(hostname -f), $(hostname -s)]]
123
+ hosts = localhost
124
+ install target = localhost
125
+ ssh command = ssh -oBatchMode=yes -oConnectTimeout=8 -oStrictHostKeyChecking=no
126
+ __HERE__
127
+ cat "$GLOBAL_CFG_PATH"
128
+
106
129
- name : Brew Install
107
130
if : startsWith(matrix.os, 'macos')
108
131
run : |
@@ -112,19 +135,15 @@ jobs:
112
135
113
136
# add GNU coreutils and sed to the user PATH
114
137
# (see instructions in brew install output)
115
- echo \
116
- "$(brew --prefix)/opt/coreutils/libexec/gnubin" \
117
- >> "${GITHUB_PATH}"
118
- echo \
119
- "/usr/local/opt/gnu-sed/libexec/gnubin" \
120
- >> "${GITHUB_PATH}"
121
- echo \
122
- "/usr/local/opt/grep/libexec/gnubin" \
123
- >> "${GITHUB_PATH}"
138
+ echo "$(brew --prefix)/opt/coreutils/libexec/gnubin" >> "${GITHUB_PATH}"
139
+ echo "$(brew --prefix)/opt/grep/libexec/gnubin" >> "${GITHUB_PATH}"
140
+ echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> "${GITHUB_PATH}"
124
141
125
142
# add coreutils to the bashrc too (for jobs)
126
143
cat >> "${HOME}/.bashrc" <<__HERE__
127
- PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
144
+ PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH"
145
+ PATH="$(brew --prefix)/opt/grep/libexec/gnubin:$PATH"
146
+ PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH"
128
147
export PATH
129
148
__HERE__
130
149
@@ -146,16 +165,13 @@ jobs:
146
165
- name : Configure Atrun
147
166
if : contains(matrix.platform, '_local_at')
148
167
run : |
149
- PTH="$HOME/.cylc/flow/"
150
- mkdir -p "${PTH}"
151
- cat > "${PTH}/global.cylc" << __HERE__
168
+ cat >> "$GLOBAL_CFG_PATH" << __HERE__
152
169
[platforms]
153
170
[[_local_at_indep_tcp]]
154
171
hosts = localhost
155
172
install target = localhost
156
173
job runner = at
157
174
__HERE__
158
- cp "${PTH}/global.cylc" "${PTH}/global-tests.cylc"
159
175
160
176
- name : Swarm Configure
161
177
run : |
@@ -244,11 +260,11 @@ jobs:
244
260
timeout-minutes : 1
245
261
run : |
246
262
find "$HOME/cylc-run" -name '*.err' -type f \
247
- -exec echo '====== {} ======' \; -exec cat '{}' \;
263
+ -exec echo \; -exec echo '====== {} ======' \; -exec cat '{}' \;
248
264
find "$HOME/cylc-run" -name '*.log' -type f \
249
- -exec echo '====== {} ======' \; -exec cat '{}' \;
265
+ -exec echo \; -exec echo '====== {} ======' \; -exec cat '{}' \;
250
266
find "${TMPDIR:-/tmp}/${USER}/cylctb-"* -type f \
251
- -exec echo '====== {} ======' \; -exec cat '{}' \;
267
+ -exec echo \; -exec echo '====== {} ======' \; -exec cat '{}' \;
252
268
253
269
- name : Set artifact upload name
254
270
if : always()
0 commit comments