-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
426cd60
commit fa8dc6b
Showing
13 changed files
with
962 additions
and
6,338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
import os | ||
import subprocess | ||
import sys | ||
|
||
env = os.environ.copy() | ||
lp = "{}/../bin".format(os.path.dirname(os.path.realpath(__file__))) | ||
if "LD_LIBRARY_PATH" in env: | ||
env["LD_LIBRARY_PATH"] += ":" + lp | ||
else: | ||
env["LD_LIBRARY_PATH"] = lp | ||
|
||
# This script is just a poor workaround for https://github.com/actions/runner-images/issues/8803 | ||
buggy_path = "C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\runneradmin\\bin;" | ||
if env["PATH"].startswith(buggy_path): | ||
env["PATH"] = env["PATH"].replace(buggy_path, "", 1) | ||
|
||
p = subprocess.Popen( | ||
sys.argv[1:], | ||
env=env | ||
) | ||
p.wait() | ||
sys.exit(p.returncode) |
Oops, something went wrong.