Skip to content

Commit 681010c

Browse files
committed
Use RUBY_PLATFORM instead of ENV["GITHUB_ACTIONS"]
1 parent 8de4981 commit 681010c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_gem/lib/go_gem/rake_task.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def self.build_env_vars
8787
"-I#{RbConfig::CONFIG["rubyhdrdir"]}",
8888
].join(" ")
8989

90-
# FIXME: Workaround for GitHub Actions
91-
if ENV["GITHUB_ACTIONS"]
90+
# FIXME: Workaround for Ubuntu (GitHub Actions)
91+
if RUBY_PLATFORM =~ /linux/i
9292
cflags.gsub!("-Wno-self-assign", "")
9393
cflags.gsub!("-Wno-parentheses-equality", "")
9494
cflags.gsub!("-Wno-constant-logical-operand", "")

0 commit comments

Comments
 (0)