From fa082a58e46eb4d55c159fe10f152c81919bec1c Mon Sep 17 00:00:00 2001 From: Master-Hash Date: Sat, 28 Oct 2023 13:56:30 +0800 Subject: [PATCH] ci: add Windows x64 wheels --- .github/workflows/build.yml | 2 +- pyproject.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da43fd5..6569fbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: build_wheels: strategy: matrix: - os: ["ubuntu-latest", "macos-latest"] + os: ["ubuntu-latest", "macos-latest", "windows-latest"] runs-on: ${{ matrix.os }} steps: diff --git a/pyproject.toml b/pyproject.toml index 53d6935..1a29c1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,3 +35,7 @@ before-all = "make c_lib" archs = ["x86_64", "universal2", "arm64"] environment = { MACOSX_DEPLOYMENT_TARGET="10.15" } before-build = "make clean && make c_lib" + +[tool.cibuildwheel.windows] +archs = ["AMD64"] +before-build = '"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat" && cl "ada_url\\ada.cpp" /c /nologo /Fo"ada_url\\ada.o" /O2 /GL /MD /W3 /EHsc /std:c++17'