Skip to content

Commit e2de7d7

Browse files
committed
fix bench step
1 parent 6d377eb commit e2de7d7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/haxe.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
sudo add-apt-repository ppa:haxe/releases -y
44
sudo apt-get update
55
sudo apt-get install haxe -y
6+
haxelib --global update haxelib
67
mkdir ~/haxelib && haxelib setup ~/haxelib
78
haxelib install hxcpp
89
haxelib git hashlink https://github.com/HaxeFoundation/hashlink.git master other/haxelib/

bench/tool/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ private static async Task TestAsync(
514514
{
515515
string exeRoot = GetIncludedRuntimeRoot(langEnvConfig: langEnvConfig, buildOutputRoot: buildOutputRoot, buildOutput: buildOutput);
516516
exeName = Path.Combine(exeRoot, exeName);
517+
await ProcessUtils.RunCommandAsync($"chmod +x \"{exeName}\"", asyncRead: false, workingDir: buildOutput).ConfigureAwait(false);
517518
}
518519

519520
string runtimeVersionParameter = langEnvConfig.RuntimeVersionParameter.FallBackTo(langConfig.RuntimeVersionParameter);
@@ -625,6 +626,7 @@ private static async Task BenchAsync(
625626
{
626627
string exeRoot = GetIncludedRuntimeRoot(langEnvConfig: langEnvConfig, buildOutputRoot: buildOutputRoot, buildOutput: buildOutput);
627628
exeName = Path.Combine(exeRoot, exeName);
629+
await ProcessUtils.RunCommandAsync($"chmod +x \"{exeName}\"", asyncRead: false, workingDir: buildOutput).ConfigureAwait(false);
628630
}
629631

630632
YamlBenchmarkProblemConfig problemTestConfig = benchConfig.Problems.FirstOrDefault(i => i.Name == problem.Name);

0 commit comments

Comments
 (0)