Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
The updated runner image uses an MSVC version that expects LLVM 17, but the
image also has LLVM 16 in its PATH, leaving it in a broken state. Manually
install 17 and use a legacy mutex implementation to fix runtime issues as a
workaround.
  • Loading branch information
fhanau committed Jun 11, 2024
1 parent 08c3651 commit b7eb563
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ jobs:
run: |
# Set a custom output root directory to avoid long file name issues.
[System.IO.File]::WriteAllLines((Join-Path -Path $env:USERPROFILE -ChildPath '.bazelrc'), 'startup --output_user_root=C:/tmp')
[System.IO.File]::WriteAllLines((Join-Path -Path $env:USERPROFILE -ChildPath '.bazelrc'), 'build:windows --copt=/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR --host_copt=/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR')
choco upgrade llvm --version=17.0.6
- name: Configure download mirrors
shell: bash
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ jobs:
# Set a custom output root directory to avoid long file name issues.
run: |
[System.IO.File]::WriteAllLines((Join-Path -Path $env:USERPROFILE -ChildPath '.bazelrc'), 'startup --output_user_root=C:/tmp')
# Work around https://github.com/actions/runner-images/issues/10004
[System.IO.File]::WriteAllLines((Join-Path -Path $env:USERPROFILE -ChildPath '.bazelrc'), 'build:windows --copt=/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR --host_copt=/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR')
choco upgrade llvm --version=17.0.6
- name: Configure download mirrors
shell: bash
run: |
Expand Down

0 comments on commit b7eb563

Please sign in to comment.