Skip to content

Commit 86d142f

Browse files
authored
[ci] Pin Windows runner to Windows 2025 (#566)
Rather than using Windows-latest this PR updates the ci to use a pinned version of Windows (set to the latest version available). This is so if you happen to have an issue with the Windows build you know exactly which version of Windows it is running, rather than having to dig into the ci, or Github runner documentation.
1 parent 640c0cf commit 86d142f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
os: [ubuntu-22.04, macos-latest, windows-latest]
10+
os: [ubuntu-22.04, macos-latest, windows-2025]
1111
clang_version: [10.0.0]
1212
# use different LLVM versions among oses because of the lack of
1313
# official assets on github.
@@ -18,7 +18,7 @@ jobs:
1818
- os: macos-latest
1919
clang_version: 10.0.0
2020
llvm_asset_suffix: x86_64-apple-darwin
21-
- os: windows-latest
21+
- os: windows-2025
2222
clang_version: 10.0.0
2323
- os: ubuntu-22.04
2424
clang_version: 16.0.0
@@ -27,7 +27,7 @@ jobs:
2727
- os: macos-latest
2828
clang_version: 15.0.7
2929
llvm_asset_suffix: x86_64-apple-darwin21.0
30-
- os: windows-latest
30+
- os: windows-2025
3131
clang_version: 16.0.0
3232
enable_pic: true
3333
steps:
@@ -51,15 +51,15 @@ jobs:
5151
echo "CC=$(pwd)/llvm/bin/clang.exe" >> $GITHUB_ENV
5252
echo "AR=$(pwd)/llvm/bin/llvm-ar.exe" >> $GITHUB_ENV
5353
echo "NM=$(pwd)/llvm/bin/llvm-nm.exe" >> $GITHUB_ENV
54-
if: matrix.os == 'windows-latest'
54+
if: matrix.os == 'windows-2025'
5555

5656
- name: Override llvm-nm with one from rustup (Windows)
5757
run: |
5858
rustup update stable
5959
rustup default stable
6060
rustup component add llvm-tools-preview
6161
echo "NM=$(rustc --print sysroot|sed 's|C:|/c|'|sed 's|\\|/|g')/lib/rustlib/x86_64-pc-windows-msvc/bin/llvm-nm.exe" >> $GITHUB_ENV
62-
if: matrix.os == 'windows-latest'
62+
if: matrix.os == 'windows-2025'
6363

6464
- name: Install LLVM tools (MacOS)
6565
shell: bash
@@ -156,7 +156,7 @@ jobs:
156156
runs-on: ${{ matrix.os }}
157157
strategy:
158158
matrix:
159-
os: [ubuntu-latest, macos-latest, windows-latest]
159+
os: [ubuntu-latest, macos-latest, windows-2025]
160160
steps:
161161
- uses: actions/checkout@v4.1.7
162162
with:

0 commit comments

Comments
 (0)