Skip to content

Update Linux build and test workflows to use lit#4836

Merged
llvm-beanz merged 4 commits intomicrosoft:mainfrom
llvm-beanz:cbieneman/coverage-workflow-2.0
Dec 2, 2022
Merged

Update Linux build and test workflows to use lit#4836
llvm-beanz merged 4 commits intomicrosoft:mainfrom
llvm-beanz:cbieneman/coverage-workflow-2.0

Conversation

@llvm-beanz
Copy link
Copy Markdown
Collaborator

This change updates the build and test workflows in our azure pipelines and the GitHub action for code coverage data to use lit instead of ctest as the test runner. This adds additional test coverage by running some of the LLVM & Clang tests.

This change updates the build and test workflows in our azure pipelines
and the GitHub action for code coverage data to use lit instead of ctest
as the test runner. This adds additional test coverage by running some
of the LLVM & Clang tests.
@llvm-beanz llvm-beanz requested review from hekota and pow2clk December 1, 2022 17:14
Comment thread .github/workflows/coverage-gh-pages.yml Outdated
run: sudo apt install -y ninja-build
- name: Configure
run: mkdir build && cd build && cmake -G Ninja -DLLVM_PARALLEL_LINK_JOBS=1 -DLLVM_USE_LINKER=lld -DCMAKE_BUILD_TYPE=Release -DDXC_COVERAGE=On -C ${{github.workspace}}/cmake/caches/PredefinedParams.cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ${{github.workspace}}
run: mkdir build && cd build && cmake -G Ninja -DLLVM_PARALLEL_LINK_JOBS=1 -DLLVM_USE_LINKER=lld -DCMAKE_BUILD_TYPE=Release -DDXC_USE_LIT=On -DDXC_COVERAGE=On -C ${{github.workspace}}/cmake/caches/PredefinedParams.cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ${{github.workspace}}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a lot of cd build && ninja ..., they should work with ninja -C build ... no?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, I could also use cmake -B <> to remove the mkdir && cd there too.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

The default Linux linker fails because LLVMAnalysis depends on LLVMDXIL
and BFD doesn't cycle libraries.
This just cleans up the pipeline shell commands to avoid unnecissary
mkdir and cd invocations.

Based on feedback from @Keenuts. Thanks!
Copy link
Copy Markdown
Collaborator

@Keenuts Keenuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@AppVeyorBot
Copy link
Copy Markdown

@AppVeyorBot
Copy link
Copy Markdown

DXC disabled support for the LLVM garbage collection intrinsics.
@AppVeyorBot
Copy link
Copy Markdown

Copy link
Copy Markdown
Collaborator

@pow2clk pow2clk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also approve!

@llvm-beanz llvm-beanz merged commit 36fdecf into microsoft:main Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants