Skip to content

Commit f92f112

Browse files
ImmaZoninazar-pc
authored andcommitted
Added windows-2022 to matrix os options
1 parent dbfcd24 commit f92f112

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/rust.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,21 @@ jobs:
4545
- ubuntu-20.04
4646
- macos-11
4747
- windows-2019
48+
- windows-2022
4849

4950
runs-on: ${{ matrix.os }}
5051

5152
steps:
5253
- name: Checkout
5354
uses: actions/checkout@v2
5455

56+
# Workaround as the newest version of MSVC does not support this latest version of CUDA, workaroud for Windows 11/Windows Server 2022.
57+
- name: Add MSVC compiler
58+
uses: ilammy/msvc-dev-cmd@v1
59+
with:
60+
toolset: 14.29
61+
if: matrix.os == 'windows-2022'
62+
5563
- name: Rust toolchain
5664
uses: actions-rs/toolchain@v1
5765
# TODO: Below can be removed when https://github.com/actions-rs/toolchain/issues/126 is resolved
@@ -100,13 +108,21 @@ jobs:
100108
- ubuntu-20.04
101109
- macos-11
102110
- windows-2019
111+
- windows-2022
103112

104113
runs-on: ${{ matrix.os }}
105114

106115
steps:
107116
- name: Checkout
108117
uses: actions/checkout@v2
109118

119+
# Workaround as the newest version of MSVC does not support this latest version of CUDA, workaroud for Windows 11/Windows Server 2022.
120+
- name: Add MSVC compiler
121+
uses: ilammy/msvc-dev-cmd@v1
122+
with:
123+
toolset: 14.29
124+
if: matrix.os == 'windows-2022'
125+
110126
- name: Rust toolchain
111127
uses: actions-rs/toolchain@v1
112128
# TODO: Below can be removed when https://github.com/actions-rs/toolchain/issues/126 is resolved

.github/workflows/snapshot-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,21 @@ jobs:
8383
- ubuntu-20.04
8484
- macos-11
8585
- windows-2019
86+
- windows-2022
8687

8788
runs-on: ${{ matrix.os }}
8889

8990
steps:
9091
- name: Checkout
9192
uses: actions/checkout@v2
9293

94+
# Workaround as the newest version of MSVC does not support this latest version of CUDA, workaroud for Windows 11/Windows Server 2022.
95+
- name: Add MSVC compiler
96+
uses: ilammy/msvc-dev-cmd@v1
97+
with:
98+
toolset: 14.29
99+
if: matrix.os == 'windows-2022'
100+
93101
- name: Download testnet chain specifictions from artifacts
94102
uses: actions/download-artifact@v2
95103
with:

0 commit comments

Comments
 (0)