Skip to content

Commit d104521

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

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

.buildkite/run_tests.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
if [[ "${BUILDKITE_BRANCH}" =~ ^backports-release-.*$ || "${BUILDKITE_BRANCH}" =~ ^release-.*$ ]]; then
3+
OPT_LEVEL=2
4+
else
5+
OPT_LEVEL=0
6+
fi
7+
8+
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
9+
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl --optimize=$OPT_LEVEL

.buildkite/runtests.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,38 @@
1-
---
21
steps:
3-
# Linux x86_64
42
- label: ":linux: linux-x86_64"
53
plugins:
6-
# Julia installation outside the sandbox
74
- JuliaCI/julia#v1:
85
version: '1.10'
96
- staticfloat/sandbox#v2:
107
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v6.00/package_linux.x86_64.tar.gz
118
rootfs_treehash: "4dcde853eb5baaa0a8f087b633eaf955dc94b5dc"
129
uid: 1000
1310
gid: 1000
14-
# Julia installation inside the sandbox
1511
- JuliaCI/julia#v1:
1612
version: "nightly"
17-
command: |
18-
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
19-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
13+
command: .ci/run_tests.sh
2014
agents:
2115
queue: "julia"
2216
os: "linux"
2317
arch: "x86_64"
2418
cpuset_limited: "true"
2519
timeout_in_minutes: 120
26-
# macOS aarch64
20+
2721
- label: ":macos: macos-aarch64"
2822
plugins:
2923
- JuliaCI/julia#v1:
3024
version: "nightly"
31-
command: |
32-
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
33-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
25+
command: .ci/run_tests.sh
3426
agents:
3527
queue: "julia"
3628
os: "macos"
3729
arch: "aarch64"
38-
# windows x86_64
30+
3931
- label: ":windows: windows-x86_64"
4032
plugins:
4133
- JuliaCI/julia#v1:
4234
version: "nightly"
43-
command: |
44-
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
45-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
35+
command: .ci/run_tests.sh
4636
agents:
4737
queue: "julia"
4838
os: "windows"

0 commit comments

Comments
 (0)