Skip to content

Commit c259f8d

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

File tree

3 files changed

+12
-34
lines changed

3 files changed

+12
-34
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ 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
113+
X86_64_PC_WINDOWS_MSVC_OPENSSL_INCLUDE_DIR: C:\Program Files\OpenSSL\include
114+
X86_64_PC_WINDOWS_MSVC_OPENSSL_LIBS: libssl-3-x64:libcrypto-3-x64
112115

113116
jobs:
114117
rust_tests:
@@ -119,7 +122,7 @@ jobs:
119122
runs-on: ${{ matrix.os }}
120123
strategy:
121124
matrix:
122-
os: [macos-latest, ubuntu-latest, windows-latest]
125+
os: [macos-latest, ubuntu-latest, windows-2025]
123126
fail-fast: false
124127
steps:
125128
- uses: actions/checkout@v4
@@ -128,12 +131,6 @@ jobs:
128131
components: clippy
129132
- uses: Swatinem/rust-cache@v2
130133

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'
137134
- name: Set up the Mac environment
138135
run: brew install autoconf automake libtool
139136
if: runner.os == 'macOS'
@@ -242,7 +239,7 @@ jobs:
242239
runs-on: ${{ matrix.os }}
243240
strategy:
244241
matrix:
245-
os: [macos-latest, ubuntu-latest, windows-latest]
242+
os: [macos-latest, ubuntu-latest, windows-2025]
246243
fail-fast: false
247244
steps:
248245
- uses: actions/checkout@v4
@@ -251,12 +248,6 @@ jobs:
251248
- uses: actions/setup-python@v5
252249
with:
253250
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'
260251
- name: Set up the Mac environment
261252
run: brew install autoconf automake libtool openssl@3
262253
if: runner.os == 'macOS'

.github/workflows/release.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ 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
21+
X86_64_PC_WINDOWS_MSVC_OPENSSL_INCLUDE_DIR: C:\Program Files\OpenSSL\include
22+
X86_64_PC_WINDOWS_MSVC_OPENSSL_LIBS: libssl-3-x64:libcrypto-3-x64
2023

2124
jobs:
2225
build:
@@ -40,11 +43,11 @@ jobs:
4043
target: aarch64-apple-darwin
4144
# - runner: macos-latest
4245
# target: x86_64-apple-darwin
43-
- runner: windows-latest
46+
- runner: windows-2025
4447
target: x86_64-pc-windows-msvc
45-
# - runner: windows-latest
48+
# - runner: windows-2025
4649
# target: i686-pc-windows-msvc
47-
# - runner: windows-latest
50+
# - runner: windows-2025
4851
# target: aarch64-pc-windows-msvc
4952
fail-fast: false
5053
steps:
@@ -54,12 +57,6 @@ jobs:
5457
- name: Set up Environment
5558
shell: bash
5659
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'
6360
- name: Set up MacOS Environment
6461
run: brew install autoconf automake libtool
6562
if: runner.os == 'macOS'
@@ -142,4 +139,4 @@ jobs:
142139
--target="$tag" \
143140
--generate-notes \
144141
$PRERELEASE_ARG \
145-
bin/rustpython-release-*
142+
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)