Skip to content

Commit be3130c

Browse files
committed
Update to windows-2025 on ci
1 parent 544182e commit be3130c

File tree

3 files changed

+10
-34
lines changed

3 files changed

+10
-34
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ env:
109109
test_yield_from
110110
# Python version targeted by the CI.
111111
PYTHON_VERSION: "3.13.1"
112+
X86_64_PC_WINDOWS_MSVC_OPENSSL_LIB_DIR: C:\Program Files\OpenSSL\lib\VC\x64\MD
113+
X86_64_PC_WINDOWS_MSVC_OPENSSL_INCLUDE_DIR: C:\Program Files\OpenSSL\include
112114

113115
jobs:
114116
rust_tests:
@@ -119,7 +121,7 @@ jobs:
119121
runs-on: ${{ matrix.os }}
120122
strategy:
121123
matrix:
122-
os: [macos-latest, ubuntu-latest, windows-latest]
124+
os: [macos-latest, ubuntu-latest, windows-2025]
123125
fail-fast: false
124126
steps:
125127
- uses: actions/checkout@v4
@@ -128,12 +130,6 @@ jobs:
128130
components: clippy
129131
- uses: Swatinem/rust-cache@v2
130132

131-
- name: Set up the Windows environment
132-
shell: bash
133-
run: |
134-
cargo install --target-dir=target -v cargo-vcpkg
135-
cargo vcpkg -v build
136-
if: runner.os == 'Windows'
137133
- name: Set up the Mac environment
138134
run: brew install autoconf automake libtool
139135
if: runner.os == 'macOS'
@@ -242,7 +238,7 @@ jobs:
242238
runs-on: ${{ matrix.os }}
243239
strategy:
244240
matrix:
245-
os: [macos-latest, ubuntu-latest, windows-latest]
241+
os: [macos-latest, ubuntu-latest, windows-2025]
246242
fail-fast: false
247243
steps:
248244
- uses: actions/checkout@v4
@@ -251,12 +247,6 @@ jobs:
251247
- uses: actions/setup-python@v5
252248
with:
253249
python-version: ${{ env.PYTHON_VERSION }}
254-
- name: Set up the Windows environment
255-
shell: bash
256-
run: |
257-
cargo install cargo-vcpkg
258-
cargo vcpkg build
259-
if: runner.os == 'Windows'
260250
- name: Set up the Mac environment
261251
run: brew install autoconf automake libtool openssl@3
262252
if: runner.os == 'macOS'

.github/workflows/release.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ permissions:
1717

1818
env:
1919
CARGO_ARGS: --no-default-features --features stdlib,importlib,encodings,sqlite,ssl
20+
X86_64_PC_WINDOWS_MSVC_OPENSSL_LIB_DIR: C:\Program Files\OpenSSL\lib\VC\x64\MD
21+
X86_64_PC_WINDOWS_MSVC_OPENSSL_INCLUDE_DIR: C:\Program Files\OpenSSL\include
2022

2123
jobs:
2224
build:
@@ -40,11 +42,11 @@ jobs:
4042
target: aarch64-apple-darwin
4143
# - runner: macos-latest
4244
# target: x86_64-apple-darwin
43-
- runner: windows-latest
45+
- runner: windows-2025
4446
target: x86_64-pc-windows-msvc
45-
# - runner: windows-latest
47+
# - runner: windows-2025
4648
# target: i686-pc-windows-msvc
47-
# - runner: windows-latest
49+
# - runner: windows-2025
4850
# target: aarch64-pc-windows-msvc
4951
fail-fast: false
5052
steps:
@@ -54,12 +56,6 @@ jobs:
5456
- name: Set up Environment
5557
shell: bash
5658
run: rustup target add ${{ matrix.platform.target }}
57-
- name: Set up Windows Environment
58-
shell: bash
59-
run: |
60-
cargo install --target-dir=target -v cargo-vcpkg
61-
cargo vcpkg -v build
62-
if: runner.os == 'Windows'
6359
- name: Set up MacOS Environment
6460
run: brew install autoconf automake libtool
6561
if: runner.os == 'macOS'
@@ -142,4 +138,4 @@ jobs:
142138
--target="$tag" \
143139
--generate-notes \
144140
$PRERELEASE_ARG \
145-
bin/rustpython-release-*
141+
bin/rustpython-release-*

Cargo.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,6 @@ lto = "thin"
8181
# REDOX START, Uncomment when you want to compile/check with redoxer
8282
# REDOX END
8383

84-
# Used only on Windows to build the vcpkg dependencies
85-
[package.metadata.vcpkg]
86-
git = "https://github.com/microsoft/vcpkg"
87-
# The revision of the vcpkg repository to use
88-
# https://github.com/microsoft/vcpkg/tags
89-
rev = "2024.02.14"
90-
91-
[package.metadata.vcpkg.target]
92-
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-md", dev-dependencies = ["openssl" ] }
93-
9484
[workspace]
9585
resolver = "2"
9686
members = [

0 commit comments

Comments
 (0)