Skip to content

Switch from build_runtime.sh to inlined CMake commands. - #18162

Merged
ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:infra-build-runtime-script
Aug 8, 2024
Merged

ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:infra-build-runtime-script

Conversation

@ScottTodd

@ScottTodd ScottTodd commented Aug 8, 2024 •

Copy link
Copy Markdown
Member

I'm trying to reduce the number of scripts that we have in build_tools/cmake/, so changes like #17996 will be easier to make with confidence.

This makes the build_test_runtime CI job no longer depend on these scripts:

These layers of scripts made it somewhat easier to have CI workflows just run scripts, but the scripts grew branches over time that obscured what was actually running. In many cases the commands are quite simple and can just be inlined.

Other ideas for simplification:

ci-exactly: build_test_runtime

@ScottTodd ScottTodd added infrastructure Relating to build systems, CI, or testing cleanup 🧹 labels Aug 8, 2024
@ScottTodd
ScottTodd merged commit b8f0306 into iree-org:main Aug 8, 2024
@ScottTodd
ScottTodd deleted the infra-build-runtime-script branch August 8, 2024 21:01
ScottTodd added a commit that referenced this pull request Aug 8, 2024
Similar to #18162, this reduces the
reliance on scripts in
[`build_tools/cmake/`](https://github.com/iree-org/iree/tree/main/build_tools/cmake)
by inlining the CMake commands used for these build configurations.

Summary of changes:

* Deleted `build_tools/cmake/build_runtime_small.sh` and
`build_tools/cmake/build_runtime_tracing.sh`
* Fixed size-optimized ("small") options used in the "small runtime" job
and resolved an unused variable warning/error in
`runtime/src/iree/hal/drivers/hip/dynamic_symbols.c` that slipped
through. When we landed #16811, it
used old CMake variables in the
`build_tools/cmake/build_runtime_small.sh` script. Oops!
* Renamed jobs so they all begin with `runtime`

    | name before | name after |
    -- | --
    `build_test_runtime` | `runtime`
    `small_runtime` | `runtime_small`
     `tracing` | `runtime_tracing`

Seeing these runtime jobs next to each other, we could expand the build
matrix even further ("all platforms" x "all configurations"). Leaving
that for the future. Now it's easier to see what the jobs have in common
and how they differ.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup 🧹 infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants