Skip to content

Commit c1ce2c0

Browse files
committed
cicd: fix windows builds
VSCode cl.exe fails to recognize some of the syntax: ``` cassandra\c_shard_info.c(3083): error C2065: '__uint128_t': undeclared identifier cassandra\c_shard_info.c(3083): error C2146: syntax error: missing ')' before identifier '__pyx_v_biased_token' cassandra\c_shard_info.c(3083): error C2059: syntax error: ')' cassandra\c_shard_info.c(3083): error C2059: syntax error: ')' cassandra\c_shard_info.c(3083): error C2059: syntax error: ')' ``` Let's switch to clang.
1 parent 7d1a2d5 commit c1ce2c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-push.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- os: ubuntu-24.04
3535
platform: PyPy
3636

37-
- os: windows-latest
37+
- os: windows-2022
3838
platform: win64
3939

4040
- os: windows-latest
@@ -100,6 +100,7 @@ jobs:
100100
if: runner.os == 'Windows' && matrix.platform == 'win64'
101101
run: |
102102
echo "CIBW_BUILD=cp*win_amd64" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
103+
echo "CIBW_ENVIRONMENT_WINDOWS= CC=clang CXX=clang++" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
103104
104105
- name: Overwrite for Windows PyPY
105106
if: runner.os == 'Windows' && matrix.platform == 'PyPy'

0 commit comments

Comments
 (0)