Skip to content

Commit f08e01a

Browse files
authored
chore: cleanup chmod chown (#377)
1 parent fcb7e2f commit f08e01a

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

bench/bench_d.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ problems:
4444
- name: regex-redux
4545
source:
4646
- 3.d
47-
- name: fannkuch-redux
47+
- name: fannkuch-redux
4848
source:
4949
- 1.d
5050
- 1-i.d
@@ -56,7 +56,7 @@ problems:
5656
- 1-m.d
5757
- name: json-serde
5858
source:
59-
- 2.d
59+
# - 2.d
6060
compiler_version_command:
6161
compiler_version_regex:
6262
runtime_version_parameter:

bench/bench_ocaml.yaml

-7
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,7 @@ environments:
4949
version: latest
5050
compiler_version_command: opam exec -- ocaml -version
5151
docker: ocaml/opam
52-
# docker_volumns:
53-
# - /tmp/.opam/download-cache:/home/opam/.opam/download-cache
5452
include: ocaml
55-
before_build:
56-
- sh -c "sudo chown $USER -R . && sudo chmod -R 777 ."
5753
build: opam install . -y && dune build && cp _build/default/app.exe out && rm -r _build
58-
after_build:
59-
# - sh -c "sudo chown $USER -R _build && sudo chmod -R 755 _build"
60-
# - cp _build/default/app.exe out
6154
out_dir: out
6255
run_cmd: app.exe

bench/include/d/dub.json

+14-8
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@
33
"root"
44
],
55
"copyright": "Copyright © 2021, root",
6-
"dependencies": {
7-
"asdf": "~>0.7.15",
8-
"intel-intrinsics": "1.11.1",
9-
"mir-algorithm": {"version": "468377999b43fe370c2f59a40257183475f04c55", "repository": "git+https://github.com/cyrusmsk/mir-algorithm.git", "default": true},
10-
},
6+
"dependencies": {
7+
"intel-intrinsics": {
8+
"version": "5691bf9de94b1c08244c45e6c3659fb0c150e82c",
9+
"repository": "git+https://github.com/AuburnSounds/intel-intrinsics.git"
10+
}
11+
},
1112
"description": "A minimal D application.",
1213
"license": "MIT",
1314
"name": "app",
1415
"targetPath": "out",
15-
"dflags-dmd": ["-mcpu=avx2"],
16-
"dflags-ldc": ["-mattr=+avx2,+sse3,+ssse3,+sse4.1,+sse4.2", "-mcpu=broadwell"]
17-
}
16+
"dflags-dmd": [
17+
"-mcpu=avx2"
18+
],
19+
"dflags-ldc": [
20+
"-mattr=+avx2,+sse3,+ssse3,+sse4.1,+sse4.2",
21+
"-mcpu=broadwell"
22+
]
23+
}

bench/tool/Program.cs

-2
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,6 @@ 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);
518517
}
519518

520519
string runtimeVersionParameter = langEnvConfig.RuntimeVersionParameter.FallBackTo(langConfig.RuntimeVersionParameter);
@@ -626,7 +625,6 @@ private static async Task BenchAsync(
626625
{
627626
string exeRoot = GetIncludedRuntimeRoot(langEnvConfig: langEnvConfig, buildOutputRoot: buildOutputRoot, buildOutput: buildOutput);
628627
exeName = Path.Combine(exeRoot, exeName);
629-
await ProcessUtils.RunCommandAsync($"chmod +x \"{exeName}\"", asyncRead: false, workingDir: buildOutput).ConfigureAwait(false);
630628
}
631629

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

0 commit comments

Comments
 (0)