Skip to content

Commit

Permalink
run with -O0 unless on release or backport branch
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Nov 27, 2024
1 parent ff78c38 commit 0f2994d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
9 changes: 9 additions & 0 deletions .buildkite/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
if [[ "${BUILDKITE_BRANCH}" =~ ^backports-release-.*$ || "${BUILDKITE_BRANCH}" =~ ^release-.*$ ]]; then
OPT_LEVEL=2
else
OPT_LEVEL=0
fi

julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
julia --color=yes --project=.ci --optimize=$OPT_LEVEL .ci/create_sysimage_and_run_tests.jl
20 changes: 5 additions & 15 deletions .buildkite/runtests.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,38 @@
---
steps:
# Linux x86_64
- label: ":linux: linux-x86_64"
plugins:
# Julia installation outside the sandbox
- JuliaCI/julia#v1:
version: '1.10'
- staticfloat/sandbox#v2:
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v6.00/package_linux.x86_64.tar.gz
rootfs_treehash: "4dcde853eb5baaa0a8f087b633eaf955dc94b5dc"
uid: 1000
gid: 1000
# Julia installation inside the sandbox
- JuliaCI/julia#v1:
version: "nightly"
command: |
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
command: .buildkite/run_tests.sh
agents:
queue: "julia"
os: "linux"
arch: "x86_64"
cpuset_limited: "true"
timeout_in_minutes: 120
# macOS aarch64

- label: ":macos: macos-aarch64"
plugins:
- JuliaCI/julia#v1:
version: "nightly"
command: |
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
command: .buildkite/run_tests.sh
agents:
queue: "julia"
os: "macos"
arch: "aarch64"
# windows x86_64

- label: ":windows: windows-x86_64"
plugins:
- JuliaCI/julia#v1:
version: "nightly"
command: |
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
command: .buildkite/run_tests.sh
agents:
queue: "julia"
os: "windows"
Expand Down

0 comments on commit 0f2994d

Please sign in to comment.