File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ function Initialize-Python {
22
22
}
23
23
# Check Python version/arch
24
24
exec { python - c " import platform; assert platform.python_version().startswith('$env: PYTHON_VERSION ')" }
25
- exec { python - c " import struct; assert struct.calcsize('P') * 8 == $env: PYTHON_ARCH " }
26
25
}
27
26
28
27
function Create-VEnv {
@@ -63,8 +62,8 @@ function Exit-VEnv {
63
62
if (! $env: PYTHON_VERSION ) {
64
63
throw " PYTHON_VERSION env var missing, must be x.y"
65
64
}
66
- if ($env: PYTHON_ARCH -ne ' 32 ' -and $env: PYTHON_ARCH -ne ' 64 ' ) {
67
- throw " PYTHON_ARCH env var must be 32 or 64 "
65
+ if ($env: PYTHON_ARCH -ne ' x86 ' -and $env: PYTHON_ARCH -ne ' x86_64 ' ) {
66
+ throw " PYTHON_ARCH env var must be x86 or x86_64 "
68
67
}
69
68
70
69
$PYVER = ($env: PYTHON_VERSION ).Replace(' .' , ' ' )
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ jobs:
136
136
# container: ${{ matrix.config.docker-image }}
137
137
138
138
steps :
139
- - uses : actions/checkout@v3
139
+ - uses : actions/checkout@v4
140
140
with :
141
141
submodules : true
142
142
@@ -295,7 +295,7 @@ jobs:
295
295
needs : build
296
296
297
297
steps :
298
- - uses : actions/checkout@v3
298
+ - uses : actions/checkout@v4
299
299
with :
300
300
submodules : true
301
301
@@ -358,7 +358,7 @@ jobs:
358
358
needs : build
359
359
360
360
steps :
361
- - uses : actions/checkout@v3
361
+ - uses : actions/checkout@v4
362
362
363
363
- name : Setup Python
364
364
uses : actions/setup-python@v4
You can’t perform that action at this time.
0 commit comments