Skip to content

Commit 4df84b4

Browse files
committed
run with -O0 unless on release or backport branch
1 parent ff78c38 commit 4df84b4

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.buildkite/runtests.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
steps:
32
# Linux x86_64
43
- label: ":linux: linux-x86_64"
@@ -15,8 +14,13 @@ steps:
1514
- JuliaCI/julia#v1:
1615
version: "nightly"
1716
command: |
17+
if [[ "${BUILDKITE_BRANCH}" =~ ^backports-release-.*$ || "${BUILDKITE_BRANCH}" =~ ^release-.*$ ]]; then
18+
OPT_LEVEL=2
19+
else
20+
OPT_LEVEL=0
21+
fi
1822
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
19-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
23+
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl --optimize=$OPT_LEVEL
2024
agents:
2125
queue: "julia"
2226
os: "linux"
@@ -29,8 +33,13 @@ steps:
2933
- JuliaCI/julia#v1:
3034
version: "nightly"
3135
command: |
36+
if [[ "${BUILDKITE_BRANCH}" =~ ^backports-release-.*$ || "${BUILDKITE_BRANCH}" =~ ^release-.*$ ]]; then
37+
OPT_LEVEL=2
38+
else
39+
OPT_LEVEL=0
40+
fi
3241
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
33-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
42+
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl --optimize=$OPT_LEVEL
3443
agents:
3544
queue: "julia"
3645
os: "macos"
@@ -41,8 +50,13 @@ steps:
4150
- JuliaCI/julia#v1:
4251
version: "nightly"
4352
command: |
53+
if [[ "${BUILDKITE_BRANCH}" =~ ^backports-release-.*$ || "${BUILDKITE_BRANCH}" =~ ^release-.*$ ]]; then
54+
OPT_LEVEL=2
55+
else
56+
OPT_LEVEL=0
57+
fi
4458
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
45-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
59+
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl --optimize=$OPT_LEVEL
4660
agents:
4761
queue: "julia"
4862
os: "windows"

0 commit comments

Comments
 (0)