-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[Github][CI] Add Windows Premerge Job for Testing #122661
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
b5a1dc1
[Github][CI] Add Windows Premerge Job for Testing
boomanaiden154 2ea666e
change shell
boomanaiden154 cc4a4dd
force sccache
boomanaiden154 eccfebf
compute projects
boomanaiden154 7ee3925
More testing
boomanaiden154 5a85ff2
adapt to windows sort
boomanaiden154 b80ae16
test
boomanaiden154 44ec139
More testing
boomanaiden154 46f060c
try tr
boomanaiden154 6d1da72
testing
boomanaiden154 0b8707c
windows line endings
boomanaiden154 0da5e37
more testing
boomanaiden154 79c8d86
more testing
boomanaiden154 dc1d060
Try changing vars
boomanaiden154 0b32e2e
maybe
boomanaiden154 87244ac
Merge branch 'main' into users/boomanaiden154/windows-premerge
boomanaiden154 a7a3aaf
set flags
boomanaiden154 970bcee
Try using new volume
boomanaiden154 d56623f
reset dir
boomanaiden154 674d417
Readd Linux
boomanaiden154 f4dd685
Fix llvm changes
boomanaiden154 788f160
bump cache size
boomanaiden154 1390ec9
Add OS name to concurrency group
boomanaiden154 557ba3d
thing
boomanaiden154 777c230
try again
boomanaiden154 418a3ba
get working
boomanaiden154 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
if: github.repository_owner == 'llvm' | ||
runs-on: llvm-premerge-linux-runners | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | ||
group: ${{ github.workflow }}-linux-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout LLVM | ||
|
@@ -70,3 +70,65 @@ jobs: | |
export CXX=/opt/llvm/bin/clang++ | ||
|
||
./.ci/monolithic-linux.sh "$(echo ${linux_projects} | tr ' ' ';')" "$(echo ${linux_check_targets})" "$(echo ${linux_runtimes} | tr ' ' ';')" "$(echo ${linux_runtime_check_targets})" | ||
|
||
premerge-checks-windows: | ||
if: github.repository_owner == 'llvm' | ||
runs-on: llvm-premerge-windows-runners | ||
concurrency: | ||
group: ${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Checkout LLVM | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
variant: "sccache" | ||
max-size: "2000M" | ||
- name: Compute Projects | ||
id: vars | ||
run: | | ||
modified_files=$(git diff --name-only HEAD~1...HEAD) | ||
modified_dirs=$(echo "$modified_files" | cut -d'/' -f1 | sort | uniq) | ||
|
||
echo $modified_files | ||
echo $modified_dirs | ||
|
||
. ./.ci/compute-projects.sh | ||
|
||
all_projects="bolt clang clang-tools-extra compiler-rt cross-project-tests flang libc libclc lld lldb llvm mlir openmp polly pstl" | ||
modified_projects="$(keep-modified-projects ${all_projects})" | ||
|
||
windows_projects_to_test=$(exclude-windows $(compute-projects-to-test 1 ${modified_projects})) | ||
windows_check_targets=$(check-targets ${windows_projects_to_test} | sort | uniq | tr -d '\r' | tr '\n' ' ') | ||
windows_projects=$(add-dependencies ${windows_projects_to_test} | sort | uniq | tr -d '\r' | tr '\n' ';') | ||
|
||
if [[ "${windows_projects}" == "" ]]; then | ||
echo "No projects to build" | ||
fi | ||
|
||
echo "Building projects: ${windows_projects}" | ||
echo "Running project checks targets: ${windows_check_targets}" | ||
|
||
echo "windows-projects=${windows_projects}" >> $GITHUB_OUTPUT | ||
echo "windows-check-targets=${windows_check_targets}" >> $GITHUB_OUTPUT | ||
- name: Build and Test | ||
# Mark the job as a success even if the step fails so that people do | ||
# not get notified while the new premerge pipeline is in an | ||
# experimental state. | ||
# TODO(boomanaiden154): Remove this once the pipeline is stable and we | ||
# are ready for people to start recieving notifications. | ||
continue-on-error: true | ||
if: ${{ steps.vars.outputs.windows-projects != '' }} | ||
shell: cmd | ||
run: | | ||
set MAX_PARALLEL_COMPILE_JOBS=64 | ||
set MAX_PARALLEL_LINK_JOBS=64 | ||
call C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat -arch=amd64 -host_arch=amd64 | ||
bash .ci/monolithic-windows.sh "${{ steps.vars.outputs.windows-projects }}" "${{ steps.vars.outputs.windows-check-targets }}" | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.