From 7d887d58c5d015e1a2a47d2b51d874ff3c0de08d Mon Sep 17 00:00:00 2001 From: Robert de Vries Date: Wed, 15 Jul 2026 23:14:57 +0200 Subject: [PATCH 1/2] Add a windows build workflow. --- .github/workflows/python-app.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 3e0c0f3..8704218 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -97,3 +97,29 @@ jobs: run: uv run --no-sync python -c "from wolfcrypt.random import Random; Random()" - name: Run tests run: uv run --no-sync pytest tests + + build-windows: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v7 + - name: Set up Python 3.10 + uses: actions/setup-python@v6 + with: + python-version: "3.10" + - name: Install uv + uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 + with: + # Install a specific version of uv. + version: "0.11.26" + - name: Build the wheel + run: uv build --wheel + - name: Install the project + run: uv sync --dev + - name: Perform static checks + run: uv run ruff check + - name: Run tests using the locally built wheel + run: | + uv pip install --reinstall dist/*.whl + uv run --no-sync pytest tests From 5947244f9b4a67ce10919b9ace61e46ad9185f8d Mon Sep 17 00:00:00 2001 From: Robert de Vries Date: Mon, 20 Jul 2026 22:11:37 +0200 Subject: [PATCH 2/2] Change definition of word32 to uint32_t. "unsigned int" might be interpreted as a 64 bit unsigned int. --- scripts/build_ffi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_ffi.py b/scripts/build_ffi.py index 82087b3..02fe9c2 100644 --- a/scripts/build_ffi.py +++ b/scripts/build_ffi.py @@ -560,7 +560,7 @@ def build_ffi(local_wolfssl, features): extern int HASHDRBG_ENABLED; typedef unsigned char byte; - typedef unsigned int word32; + typedef uint32_t word32; typedef struct { ...; } WC_RNG; typedef struct { ...; } OS_Seed;