Skip to content

Commit e5a8880

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

File tree

1 file changed

+18
-40
lines changed

1 file changed

+18
-40
lines changed

.buildkite/runtests.yml

Lines changed: 18 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,27 @@
1-
---
21
steps:
3-
# Linux x86_64
4-
- label: ":linux: linux-x86_64"
2+
- label: ":test: Tests"
53
plugins:
6-
# Julia installation outside the sandbox
7-
- JuliaCI/julia#v1:
8-
version: '1.10'
9-
- staticfloat/sandbox#v2:
10-
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v6.00/package_linux.x86_64.tar.gz
11-
rootfs_treehash: "4dcde853eb5baaa0a8f087b633eaf955dc94b5dc"
12-
uid: 1000
13-
gid: 1000
14-
# Julia installation inside the sandbox
154
- JuliaCI/julia#v1:
165
version: "nightly"
176
command: |
7+
# Set optimization level based on branch name
8+
if [[ "${BUILDKITE_BRANCH}" =~ ^backports-release-.*$ || "${BUILDKITE_BRANCH}" =~ ^release-.*$ ]]; then
9+
OPT_LEVEL=2
10+
else
11+
OPT_LEVEL=0
12+
fi
13+
14+
# Common Julia commands
1815
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
19-
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
16+
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl --optimize=$OPT_LEVEL
2017
agents:
2118
queue: "julia"
22-
os: "linux"
23-
arch: "x86_64"
24-
cpuset_limited: "true"
2519
timeout_in_minutes: 120
26-
# macOS aarch64
27-
- label: ":macos: macos-aarch64"
28-
plugins:
29-
- JuliaCI/julia#v1:
30-
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
34-
agents:
35-
queue: "julia"
36-
os: "macos"
37-
arch: "aarch64"
38-
# windows x86_64
39-
- label: ":windows: windows-x86_64"
40-
plugins:
41-
- JuliaCI/julia#v1:
42-
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
46-
agents:
47-
queue: "julia"
48-
os: "windows"
49-
arch: "x86_64"
20+
matrix:
21+
# Define combinations of operating systems and architectures
22+
- os: "linux"
23+
arch: "x86_64"
24+
- os: "macos"
25+
arch: "aarch64"
26+
- os: "windows"
27+
arch: "x86_64"

0 commit comments

Comments
 (0)