Use ::
form workflow commands
This commit is contained in:
parent
9acc73d7c5
commit
b76c2ec005
8
.github/workflows/mingw.yml
vendored
8
.github/workflows/mingw.yml
vendored
@ -78,9 +78,9 @@ jobs:
|
|||||||
mv /c/Windows/System32/libssl-1_1-x64.dll /c/Windows/System32/libssl-1_1-x64.dll_
|
mv /c/Windows/System32/libssl-1_1-x64.dll /c/Windows/System32/libssl-1_1-x64.dll_
|
||||||
result=true
|
result=true
|
||||||
for e in gcc.exe ragel.exe make.exe libcrypto-1_1-x64.dll libssl-1_1-x64.dll; do
|
for e in gcc.exe ragel.exe make.exe libcrypto-1_1-x64.dll libssl-1_1-x64.dll; do
|
||||||
echo '##['group']'$'\033[93m'$e$'\033[m'
|
echo ::group::$'\033[93m'$e$'\033[m'
|
||||||
where $e || result=false
|
where $e || result=false
|
||||||
echo '##['endgroup']'
|
echo ::endgroup::
|
||||||
done
|
done
|
||||||
$result
|
$result
|
||||||
working-directory:
|
working-directory:
|
||||||
@ -91,9 +91,9 @@ jobs:
|
|||||||
result=true
|
result=true
|
||||||
for e in gcc ragel make "openssl version"; do
|
for e in gcc ragel make "openssl version"; do
|
||||||
case "$e" in *" "*) ;; *) e="$e --version";; esac
|
case "$e" in *" "*) ;; *) e="$e --version";; esac
|
||||||
echo '##['group']'$'\033[93m'$e$'\033[m'
|
echo ::group::$'\033[93m'$e$'\033[m'
|
||||||
$e || result=false
|
$e || result=false
|
||||||
echo '##['endgroup']'
|
echo ::endgroup::
|
||||||
done
|
done
|
||||||
$result
|
$result
|
||||||
working-directory:
|
working-directory:
|
||||||
|
@ -8,8 +8,9 @@ MSPECOPT += $(if $(filter -j%,$(MFLAGS)),-j)
|
|||||||
nproc = $(subst -j,,$(filter -j%,$(MFLAGS)))
|
nproc = $(subst -j,,$(filter -j%,$(MFLAGS)))
|
||||||
|
|
||||||
ifeq ($(GITHUB_ACTIONS),true)
|
ifeq ($(GITHUB_ACTIONS),true)
|
||||||
override ACTIONS_GROUP = @echo "\#\#[group]$(patsubst yes-%,%,$@)"
|
# 93(bright yellow) is copied from .github/workflows/mingw.yml
|
||||||
override ACTIONS_ENDGROUP = @echo "\#\#[endgroup]"
|
override ACTIONS_GROUP = @echo "::group::[93m$(@:yes-%=%)[m"
|
||||||
|
override ACTIONS_ENDGROUP = @echo "::endgroup::"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(filter darwin%,$(target_os)),)
|
ifneq ($(filter darwin%,$(target_os)),)
|
||||||
|
@ -23,7 +23,8 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
|
|||||||
next if /^\s*(?:#|$)/ =~ line
|
next if /^\s*(?:#|$)/ =~ line
|
||||||
gem = line.split.first
|
gem = line.split.first
|
||||||
next if ARGV.any? {|pat| !File.fnmatch?(pat, gem)}
|
next if ARGV.any? {|pat| !File.fnmatch?(pat, gem)}
|
||||||
puts "#{github_actions ? "##[group]" : "\n"}Testing the #{gem} gem"
|
# 93(bright yellow) is copied from .github/workflows/mingw.yml
|
||||||
|
puts "#{github_actions ? "::group::\e\[93m" : "\n"}Testing the #{gem} gem#{github_actions ? "\e\[m" : ""}"
|
||||||
|
|
||||||
test_command = "#{ruby} -C #{gem_dir}/src/#{gem} #{rake} test"
|
test_command = "#{ruby} -C #{gem_dir}/src/#{gem} #{rake} test"
|
||||||
first_timeout = 600 # 10min
|
first_timeout = 600 # 10min
|
||||||
@ -88,7 +89,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
print "##[endgroup]\n" if github_actions
|
print "::endgroup::\n" if github_actions
|
||||||
unless $?.success?
|
unless $?.success?
|
||||||
|
|
||||||
mesg = "Tests failed " +
|
mesg = "Tests failed " +
|
||||||
|
@ -547,8 +547,9 @@ GOLF_PRELUDE_C = golf_prelude.c
|
|||||||
RBCONFIG = ./.rbconfig.time
|
RBCONFIG = ./.rbconfig.time
|
||||||
|
|
||||||
!if "$(GITHUB_ACTIONS)" == "true"
|
!if "$(GITHUB_ACTIONS)" == "true"
|
||||||
ACTIONS_GROUP = @echo ^#^#[group]$(@:yes-=)
|
# 93(bright yellow) is copied from .github/workflows/mingw.yml
|
||||||
ACTIONS_ENDGROUP = @echo ^#^#[endgroup]
|
ACTIONS_GROUP = @echo ::group::[93m$(@:yes-=)[m
|
||||||
|
ACTIONS_ENDGROUP = @echo ::endgroup::
|
||||||
!else
|
!else
|
||||||
ACTIONS_GROUP = @:: $(empty)
|
ACTIONS_GROUP = @:: $(empty)
|
||||||
ACTIONS_ENDGROUP = @::
|
ACTIONS_ENDGROUP = @::
|
||||||
|
Loading…
x
Reference in New Issue
Block a user