Skip to content

Commit 2e9aa8d

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

File tree

3 files changed

+14
-34
lines changed

3 files changed

+14
-34
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ 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
115+
X86_64_PC_WINDOWS_MSVC_OPENSSL_STATIC: "0"
112116

113117
jobs:
114118
rust_tests:
@@ -119,7 +123,7 @@ jobs:
119123
runs-on: ${{ matrix.os }}
120124
strategy:
121125
matrix:
122-
os: [macos-latest, ubuntu-latest, windows-latest]
126+
os: [macos-latest, ubuntu-latest, windows-2025]
123127
fail-fast: false
124128
steps:
125129
- uses: actions/checkout@v4
@@ -128,12 +132,6 @@ jobs:
128132
components: clippy
129133
- uses: Swatinem/rust-cache@v2
130134

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'
137135
- name: Set up the Mac environment
138136
run: brew install autoconf automake libtool
139137
if: runner.os == 'macOS'
@@ -242,7 +240,7 @@ jobs:
242240
runs-on: ${{ matrix.os }}
243241
strategy:
244242
matrix:
245-
os: [macos-latest, ubuntu-latest, windows-latest]
243+
os: [macos-latest, ubuntu-latest, windows-2025]
246244
fail-fast: false
247245
steps:
248246
- uses: actions/checkout@v4
@@ -251,12 +249,6 @@ jobs:
251249
- uses: actions/setup-python@v5
252250
with:
253251
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'
260252
- name: Set up the Mac environment
261253
run: brew install autoconf automake libtool openssl@3
262254
if: runner.os == 'macOS'

.github/workflows/release.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ 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
23+
X86_64_PC_WINDOWS_MSVC_OPENSSL_STATIC: "0"
2024

2125
jobs:
2226
build:
@@ -40,11 +44,11 @@ jobs:
4044
target: aarch64-apple-darwin
4145
# - runner: macos-latest
4246
# target: x86_64-apple-darwin
43-
- runner: windows-latest
47+
- runner: windows-2025
4448
target: x86_64-pc-windows-msvc
45-
# - runner: windows-latest
49+
# - runner: windows-2025
4650
# target: i686-pc-windows-msvc
47-
# - runner: windows-latest
51+
# - runner: windows-2025
4852
# target: aarch64-pc-windows-msvc
4953
fail-fast: false
5054
steps:
@@ -54,12 +58,6 @@ jobs:
5458
- name: Set up Environment
5559
shell: bash
5660
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'
6361
- name: Set up MacOS Environment
6462
run: brew install autoconf automake libtool
6563
if: runner.os == 'macOS'
@@ -142,4 +140,4 @@ jobs:
142140
--target="$tag" \
143141
--generate-notes \
144142
$PRERELEASE_ARG \
145-
bin/rustpython-release-*
143+
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)