You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: split install and run into two different steps
This allows the path to be properly updated when installing on a minimal
system
From the generated installer by cargo-dist
```
add_install_dir_to_ci_path() {
# Attempt to do CI-specific rituals to get the install-dir on PATH faster
local _install_dir="$1"
# If GITHUB_PATH is present, then write install_dir to the file it refs.
# After each GitHub Action, the contents will be added to PATH.
# So if you put a curl | sh for this script in its own "run" step,
# the next step will have this dir on PATH.
#
# Note that GITHUB_PATH will not resolve any variables, so we in fact
# want to write install_dir and not install_dir_expr
if [ -n "${GITHUB_PATH:-}" ]; then
ensure echo "$_install_dir" >> "$GITHUB_PATH"
fi
}
```
Copy file name to clipboardExpand all lines: action.yml
+18-16Lines changed: 18 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -143,26 +143,13 @@ runs:
143
143
const version = process.env.RUNNER_VERSION
144
144
core.setOutput('hash', hashes[version] || '')
145
145
146
-
- shell: bash
147
-
env:
148
-
GH_MATRIX: "${{ toJson(matrix) }}"
149
-
GH_STRATEGY: "${{ toJson(strategy) }}"
150
-
# This is needed to properly handle quotes and multiline commands in the 'run' input properly, rather than doing `RUN_INPUT_RUN=${{ inputs.run }}` in the script
151
-
CODSPEED_INPUT_RUN: ${{ inputs.run }}
146
+
- name: Install CodSpeed runner
147
+
shell: bash
152
148
run: |
153
-
# Validate required inputs
154
-
# (custom message for smoother v4 migration)
155
-
if [ -z "${{ inputs.mode }}" ]; then
156
-
echo "::error title=Missing required input 'mode'::The 'mode' input is required as of CodSpeed Action v4. Please explicitly set 'mode' to 'simulation' or 'walltime'. Before, this variable was automatically set to instrumentation on every runner except for CodSpeed macro runners where it was set to walltime by default. See https://codspeed.io/docs/instruments for details."
# This is needed to properly handle quotes and multiline commands in the 'run' input properly, rather than doing `RUN_INPUT_RUN=${{ inputs.run }}` in the script
212
+
CODSPEED_INPUT_RUN: ${{ inputs.run }}
213
+
run: |
214
+
# Validate required inputs
215
+
# (custom message for smoother v4 migration)
216
+
if [ -z "${{ inputs.mode }}" ]; then
217
+
echo "::error title=Missing required input 'mode'::The 'mode' input is required as of CodSpeed Action v4. Please explicitly set 'mode' to 'simulation' or 'walltime'. Before, this variable was automatically set to instrumentation on every runner except for CodSpeed macro runners where it was set to walltime by default. See https://codspeed.io/docs/instruments for details."
0 commit comments