-
Is there an environment variable, such as Just like If not, then I really hope to add this environment variable, which is very useful in the DEBUG mode of CI and can simplify our pipeline. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @rakuyoMo, |
Beta Was this translation helpful? Give feedback.
-
@pepicrft I would like to use Below is the contents of a module Tools
def ci_debug_mode?
ENV['RUNNER_DEBUG'] == '1' || ENV['ACTIONS_RUNNER_DEBUG'] == 'true'
end
def verbose_param
ci_debug_mode? ? '--verbose' : ''
end
def mise_exec_prefix
"mise #{verbose_param} exec --"
end
def tuist_prefix
"tuist #{verbose_param}"
end
end
namespace :tuist do
include Tools
desc 'Run Tuist Install'
task :install do
sh "#{mise_exec_prefix} #{tuist_prefix} install"
end
desc 'Run Tuist Install without Mise'
task :install_without_mise do
sh "#{tuist_prefix} install"
end
desc 'Run Tuist Generate'
task :generate do
sh "#{mise_exec_prefix} #{tuist_prefix} generate"
end
desc 'Run Tuist Generate without Mise'
task :generate_without_mise do
sh "#{tuist_prefix} generate"
end
end You can see that I need to use Now try another way, let's use ...
jobs:
build:
name: Xcode ${{ matrix.xcode }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
...
steps:
- name: Set up debug
if: ${{ runner.debug == '1' }}
run: echo "MISE_VERBOSE=1" >> "$GITHUB_ENV"
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
... The above is part of By setting Now let us assume that namespace :tuist do
desc 'Run Tuist Install'
task :install do
sh "mise exec -- tuist install"
end
desc 'Run Tuist Install without Mise'
task :install_without_mise do
sh "tuist install"
end
desc 'Run Tuist Generate'
task :generate do
sh "mise exec -- tuist generate"
end
desc 'Run Tuist Generate without Mise'
task :generate_without_mise do
sh "tuist generate"
end
end I hope the development team will reconsider adding |
Beta Was this translation helpful? Give feedback.
@rakuyoMo There's actually
TUIST_CONFIG_VERBOSE
that you can use. It's defined here:tuist/Sources/TuistSupport/Constants.swift
Line 61 in 2d71fef
It's not meant to be used by end users but it should work. If it does work for you, I think we can document it and no longer mark it as for dev purposes only.