Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make llvmpasses depend on the asserts build so we don't waste CI time #319

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions pipelines/main/misc/llvmpasses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ steps:
steps:
- label: "llvmpasses"
key: "llvmpasses"
# Wait until `build-x86_64-linux-gnu` is finished, so that we only see build errors once
# Wait until `build-x86_64-linux-gnuassert` is finished, so we don't build julia an extra time
depends_on:
- "build_x86_64-linux-gnu"
- "build_x86_64-linux-gnuassert"
plugins:
- JuliaCI/julia#v1:
# Drop default "registries" directory, so it is not persisted from execution to execution
Expand All @@ -23,7 +23,11 @@ steps:
# Enable Julia assertions: FORCE_ASSERTIONS=1
# Enable LLVM assertions: LLVM_ASSERTIONS=1
export MAKE_ASSERT_FLAGS="FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1"
make --output-sync -j$${JULIA_CPU_THREADS:?} release JULIA_PRECOMPILE=0 $${MAKE_ASSERT_FLAGS:?}
# Download pre-built julia, extract into `usr/`
buildkite-agent artifact download --step "build_x86_64-linux-gnuassert" 'julia-*-linuxassert-x86_64.tar.gz' .
mkdir -p ./usr
tar -C ./usr --strip-components=1 -zxf julia-*-linux-x86_64.tar.gz
vchuravy marked this conversation as resolved.
Show resolved Hide resolved
ln -s ./usr/bin/julia ./julia
echo "--- make src/install-analysis-deps"
make --output-sync -j$${JULIA_CPU_THREADS:?} -C src install-analysis-deps $${MAKE_ASSERT_FLAGS:?}
echo "+++ make test/llvmpasses"
Expand Down