Skip to content

Commit 844bac5

Browse files
committed
Use RUBY_PLATFORM instead of ENV["GITHUB_ACTIONS"]
1 parent 95816f8 commit 844bac5

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
@@ -71,8 +71,8 @@ def self.build_env_vars
7171
"-I#{RbConfig::CONFIG["rubyhdrdir"]}",
7272
].join(" ")
7373

74-
# FIXME: Workaround for GitHub Actions
75-
if ENV["GITHUB_ACTIONS"]
74+
# FIXME: Workaround for Ubuntu (GitHub Actions)
75+
if RUBY_PLATFORM =~ /linux/i
7676
cflags.gsub!("-Wno-self-assign", "")
7777
cflags.gsub!("-Wno-parentheses-equality", "")
7878
cflags.gsub!("-Wno-constant-logical-operand", "")

0 commit comments

Comments
 (0)